Next: gets Up: Input and Output Previous: scanf

Whole Lines of Input and Output

Where we are not too interested in the format of our data, or perhaps we cannot predict its format in advance, we can read and write whole lines as character strings. This approach allows us to read in a line of input, and then use various string handling functions to analyse it at our leisure.
Tue Jan 17 11:40:37 GMT 1995