File I/O

A type FILE is defined in stdio.h used to represent an I/O stream.

An I/O stream may connect to a file, a pipe, a screen.

Depending on the stream, characters may be read, written or both to the stream.

Three standard FILE * variables:stdin, stdout, stderr

These are connect to the three standard streams of a Unix process - but provided by all C implementations.

stdin - read only, regular input.

stdout - write only, regular output.

stderr - write only, error output.

Index