-
I should know this by now but I don't... =) What does FreeFile do?
I think I know but I'm not sure... Say if you have written Open This For Input As #1, and #2, and #3, the files are still open (aka it hasn't gone through Close #whatever-the-number-is yet), and you open another file with FreeFile, it will open the next free number, which in this case would be #4? Is this right? Or am I asleep?
Thanks... =)
-Git
-
You are right. FreeFile gives you the free file number to open a file.
Just note thet you shouldn't use it like this
Code:
Open This For Input As #1
but like this
Code:
Dim filenumber
filenumber = FreeFile
Open This For Input As #filenumber