this is a review from GNU C programming
stream
two basic mechanism for representing the connection between your program and the file: streams & file descriptors. FD is represented as objects of type int; streams are represented as FILE * objects
a stream is an abstract concept reprensenting a communication channel to a file, a device, or consider it as a sequence of characters with functions to take characters out of one end, and put characters into the other end, like a pipe.
file position
an integer representing the number of bytes from the beginning of the file; each time a character read or written, the file position is incremented, namely, access to a file is sequential.
|
|
ASCII IO
|
|
block IO
usually block stands for either block data or text in fixed-size, instead of characters or lines
|
|
formatted IO
|
|
EOF
|
|
stream buffer
stream and file is not communicated character-by-character, there is a buffer for I/O.
|
|
file descriptor
|
|
synchronizing I/O
|
|
not yet
async I/O, event I/O, interrupt driven I/O, GPIO …