Freefile return the first available filenumber (all open files have a number).
You should allways use freefile when opening files.
e.g.
----------------------------------
Dim inFile as byte
infile=freefile
open "test.txt" for input as #infile
'code here
close infile
-------------------------------------
In that way you won't accidentailly write to to wrong file (if you have more thatn one file open)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.