Beyond Character Streams
C/C++ view
- Textfile: stream of characters
- Stream libraries automatically convert characters into internal data types
- Eg: "12 15.9 a" on the file can be automatically converted and stored into int, double, char variables
Broader view
- File as a sequence of binary data
- Might correspond to a struct
- No automatic conversion
- Also supported by C/C++