Managing File I/O
From Simula’s standpoint, a file, or what it terms a data set, is an assembly of data external to the program and organized sequentially or addressably. A file comprises images, making it an ImageFile or a text file, or bytes, making it a ByteFile or a binary file. These two types, ImageFile and ByteFile, are subclasses of the File class. (Classes in Simula exist! Refer to Switching to Object-Oriented Programming.) You can open files for reading (as InFile and InByteFile), writing (as OutFile and OutByteFile), or both (as DirectFile and DirectByteFile).
With a multitude of operating systems and even computer systems operating without an OS, the definition of image within an image file was intended to depend on the specific ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access