Princeton University
COS 217: Introduction to Pgmming Systems

Precept 7b: C Text Files

Purpose

Describe how to open, write data to, and read data from text files

C Text File Handling

So far we've discussed how a C program can:

Read from stdin

Write to stdout

Write to stderr

Now: How a C program can read from or write to other streams/files

See C Text File Handling

Copyright © 2009 by Robert M. Dondero, Jr.