READ

READ Variable [ , Length ]

Reads the standard output as binary data whose type is given by the type of the variable. The binary representation is the one used by the WRITE instruction.

If Variable is a string, you can specify a length that indicates the number of bytes to read. If the length is negative, then (- Length) bytes are read up to the end of stream.

If no length is specified for a string, it is is read from the stream. The string then must have been written with the WRITE instruction.

READ # File , Variable [ , Length ]

Same as above, except that the data are read from the stream File.


See also

CLOSE, COPY, Eof, FLUSH, INPUT, Lof, LINE INPUT, KILL, OPEN, PRINT, RENAME, Seek, SEEK, WRITE


Previous: Randomize Next: RENAME