 | | Up to this point, this chapter discussed methods of performing unformatted I/O. The programs in Examples 4-1, 4-2, and 4-3 simply read and write bytes, without assigning any particular meaning to them. Although this type of I/O is performed all the time, it is also necessary to be able to read or write data that is formatted in a particular way, usually to make it easier for human beings to understand and work with. The Standard I/O Library provides two sets of functions to do this: the printf functions handle writing formatted output, and the scanf functions handle reading formatted input. | |
|