Explanation
FREEFILE Function
Returns the next valid unused file number.Worth knowing
Useful and cross-version information about the programming environments of QBasic, QuickBasic and Visual Basic for DOS.
Useful and cross-version information about the programming environments of QBasic, QuickBasic and Visual Basic for DOS.
FREEFILE |
OPEN "TEST.DAT" FOR OUTPUT AS #1
PRINT "Next file number: "; FREEFILE
CLOSE
See also: | OPEN |