gm2-libs-iso/SRawIO (The GNU Modula-2 Compiler)

#### 4.4.49 gm2-libs-iso/SRawIO ¶

    DEFINITION MODULE SRawIO;

      (* Reading and writing data over default channels using raw operations, that is, with no
         conversion or interpretation. The read result is of the type IOConsts.ReadResults.
      *)

    IMPORT SYSTEM;

    PROCEDURE Read (VAR to: ARRAY OF SYSTEM.LOC);
      (* Reads storage units from the default input channel, and assigns them to successive
         components of to.  The read result is set to the value allRight, wrongFormat, or
         endOfInput.
      *)

    PROCEDURE Write (from: ARRAY OF SYSTEM.LOC);
      (* Writes storage units to the default output channel from successive components of from.
      *)

    END SRawIO.