September 1998
Intermediate to advanced
848 pages
20h 13m
English
Often you need programs that can read information from files or can write results into a file. One such form of program-file communication is file redirection, as you saw in Chapter 8, "Character Input/Output and Redirection." This method is simple but limited. For instance, suppose you want to write an interactive program that asks you for book titles and then saves the complete listing in a file. If you use redirection, as in
books > bklist
Fortunately, C offers more powerful methods of communicating with files. It enables you to open a file ...
Read now
Unlock full access