CHAPTER 13FILE INPUT/OUTPUT

You will learn about the following in this chapter:

• Functions:

fopen(), getc(), putc(), exit(), fclose()

fprintf(), fscanf(), fgets(), fputs()

rewind(), fseek(), ftell(), fflush()

fgetpos(), fsetpos(), feof(), ferror()

ungetc(), setvbuf(), fread(), fwrite()

• How to process files using C’s standard I/O family of functions

• Text modes and binary modes, text and binary formats, and buffered and nonbuffered I/O

• Using functions that can access files both sequentially and randomly

Files are essential to today’s computer systems. They are used to store programs, documents, data, correspondence, forms, graphics, and myriad other kinds of information. As a programmer, you will have to write programs that create files, ...

Get C Primer Plus, Fifth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.