Simple Example of a Web-based Interface to Ada Programs
Ada Source Code, 2 of 4
Create the data file, loop until end of input stream and gather characters one at a time from standard input, writing them to the file one at a time.  I added the conversion of an ampersand (&) to a new line.