O'Reilly logo

C Primer Plus, Fifth Edition by Stephen Prata

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required