The FILE* Type
FILE* is the type used to interact with files (a handle)
Conceptually, a FILE* represents a stream
- a sequence of bytes moving to or from a device
FILE* values are created by fopen()
FILE* values are deleted by fclose()
- A
FILE* contains data to keep track of the stream's state
- object at end of pointer is like a
FileRep struct
- contains: buffer, current location, mode, etc. (but not file name)
|