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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.