FREEFILE
FREEFILE
Returns an unused file handle.
Example
' create a text file
freefile()
f = 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
freefile()
f = open "MyDemoFile.txt" for input as #f
while(!eof(f)) ' eof works only without #
input #f, c
print c
wend
close #f
Code samples using FREEFILE
File
ACCESS
BGETC
BLOAD
BPUTC
BSAVE
CHDIR
CHMOD
CLOSE
COPY
DIRWALK
EOF
EXIST
FILES
FREEFILE
INPUT
INPUT
KILL
LOCK
LOF
MKDIR
OPEN
READ
RENAME
RMDIR
SEEK
SEEK
TLOAD
TSAVE
WRITE
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.