Click here to Skip to main content
15,891,943 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dim TextLine As String
FileOpen(1, "TESTFILE", OpenMode.Input)
Do While Not EOF(1)
TextLine = LineInput(1)
MsgBox("End of file reached at " & TextLine)
Loop
FileClose(1)


Dim TextLine As String
FileOpen(4, "TESTFILE", OpenMode.Input)
Do While Not EOF(4)
TextLine = LineInput(4)
MsgBox("End of file reached at " & TextLine)
Loop
FileClose(4)


difference between two conditions
pl EOF(4) what is the 4 ?
Posted
Comments
Bernhard Hiller 19-Mar-14 6:07am    
That's VB.Net? Looks more like VB6. Or is that terrible style still possible?
F. Xaver 19-Mar-14 7:13am    
Its still possible :/

1 solution

4 is the Filenumber given to FileOpen function to identify the file being open.

Please check it :
http://msdn.microsoft.com/en-us/library/7ct2yy4s(v=vs.90).aspx[^]

http://msdn.microsoft.com/en-us/library/afh37kh8(v=vs.90).aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900