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


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.

(http://c.learncodethehardway.org/book/learn-c-the-hard-waych25.html#x30-14000025)

Task Discussion


  • Thiago Manel   Dec. 8, 2012, 12:51 p.m.

    done. It was nice to know the /dev/urandom trick to test input handling.

     

    p.s How can I mark this task as "Done" ?

    p.s2 Heitor, add more tasks :)