Home Segments Index Top Previous Next

545: Mainline

To read from a file or to write to a file, you must inform the C compiler that you plan to use C's standard file-handling functions. Those file-handling functions are in the same library as other input–output functions; accordingly, you include the following declaration in your program:

#include