FREEFILE

FREEFILE

Returns an unused file handle.

Example

' create a text file

f = freefile()
open "MyDemoFile.txt" for output as #f

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

close #f

' open text file and print content line by line

f = freefile()
open "MyDemoFile.txt" for input as #f

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

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