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.