Data (cont)
Data exists outside programs in files
A file is a sequence of bytes, accessed sequentially
The FILE * type represents a file stream in C
Every C program is connected to three streams:
The stdio.h library defines a range of file operations:
-
getc , putc , fgets , fputs , scanf , printf
|