Guardian Programmer's Guide

Table Of Contents
Using the File System
Guardian Programmer’s Guide 421922-014
2 - 3
Device Files
Device Files
In addition to program and data files stored on disk, every terminal, printer, and
magnetic tape is a file. Treating devices in this way makes device I/O as easy as
accessing disk files. This approach allows disk files and devices to be handled
uniformly where appropriate and allows programs to be as device-independent as
possible.
What constitutes an I/O transfer with a device other than a disk depends on the
characteristics of the device. On a conversational-mode terminal, for example, a
transfer is one line of information; on a page-mode terminal, a transfer can be up to
one page of information; on a line printer, a transfer is one line of print; on a magnetic
tape unit, a transfer is one physical record on tape.
This guide discusses how to communicate with terminals, printers, and magnetic tape
drives. Sections 9 through 12 provide details. For information on accessing data
communications lines, refer to the appropriate data communications manual.
Additional information on accessing terminals, printers, and magnetic tapes can also
be found in the data communications manuals.
Figure 2-1. Disk Files
VST006.VSD