Chapter 12. FILE INPUTOUTPUT

I l @ ve RuBoard

Chapter 12. FILE 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(), 

In this chapter, you learn how to process files using C's standard I/O family of functions. You learn about text modes and binary modes, text and binary formats, and buffered and nonbuffered I/O. You practice 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, write into files, and read from files. In this chapter, we show you how.

I l @ ve RuBoard


C++ Primer Plus
C Primer Plus (5th Edition)
ISBN: 0672326965
EAN: 2147483647
Year: 2000
Pages: 314
Authors: Stephen Prata

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net