[prev] [index] [next]

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:

  • stdinstdout stderr
The stdio.h library defines a range of file operations:
  • getcputcfgetsfputsscanfprintf