Next: Skipping over characters
Up: Formatting
Previous: I/O is Line Oriented

Format Tyranny

FORMAT statements let you get things looking exactly like you want, but they are not very forgiving. Compile and run the modified version of ``fmt2.f'', but this time give it single digit numbers separated by only one space. Can you explain what is printed out?

Click here for the answer

Using formatted READ statements for situations in which the user is entering the input is usually not a very good idea. In such situations, it is better to use the list-directed input (without FORMATs) that we've been using all along. Why is that?

Click here for the answer

Why would you ever want to use formatted input?

Click here for the answer


Next: Skipping over characters
Up: Formatting
Previous: I/O is Line Oriented

Hamlet Project
hamlet@cs.utah.edu