Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

infile = Freefile

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
what does FreeFile function do? This function gives me an integer, what's the purpose of this string?

infile = freefile

Tkx ;)
 
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)

Sunaj

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top