Welcome to the Creatures Wiki! Log in and join the community.

INNL

From Creatures Wiki
Jump to navigation Jump to search

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

Usage[edit]

Syntax: INNL

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

Examples[edit]

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[edit]