This course will become read-only in the near future. Tell us at community.p2pu.org if that is a problem.

Chapter 25 - Exercise 24: Input, Output, Files [Dec. 2, 2012, 2:55 p.m.]


You've been using printf to print things, and that's great and all, but you need more. In this exercise program you're using the functions fscanf and fgets to build information about a person in a structure. After this simple introduction to reading input, you'll get a full list of the functions that C has for I/O.