GLBasic User Manual

Main sections

GETFILE

GETFILE file$, lin#, dat#$



Sets the value of the variable dat#$ to the contents of the file file$ on line number lin#. The first line has the index 0. The file can be no longer than 256 lines.

Sample:
 
a$="NAME";
PUTFILE "Test.txt", 0, s$
a$=""
GETFILE "Test.txt", 0, a$
PRINT a$, 100, 100
SHOWSCREEN
MOUSEWAIT

See also...