INNL

From Creatures Wikia

Jump to: navigation, search

INNL is a CAOS function which reads from the input stream.

Usage

Syntax: INNL

Returns a line from the input stream. Reads past the newline but does not return it.

Examples

Read an entire file into va00. If you wanted to copy the file, you could direct the ouput stream and then output va00 at the end of this.

FILE IOPE 0 "myfile"
DOIF INOK eq 1
  SETS va00 ""
  LOOP
    ADDS va00 INNL
    ADDS va00 "\n"
  UNTL INOK eq 0
ENDI
FILE ICLO


See also

Personal tools