AS

OPEN file AS #fileN

Used in combination with OPEN to open a file using a file number.

See: OPEN

Example:

' create a text file
open "MyDemoFile.txt" for output as #1

for i = 1 to 10
    print #1, i 
next

close #1

' open text file and print content line by line
open "MyDemoFile.txt" for input as #1

while(!eof(1))   ' eof works only without #
    input #1, c
    print c
wend

close #1
Language
If there is insufficient information on this page and you wish learn more about AS, please send an email to smallbasic@gmail.com. You can help to improve information about AS by submitting a pull request, click View Source for details. Note, an offline language reference text file is also available - see the Download section.