请参阅VB.Net中的EOF [英] Pls Mean in EOF in VB.Net
问题描述
Dim TextLine As String
FileOpen(1,TESTFILE,OpenMode.Input)
Do While Not EOF(1)
TextLine = LineInput(1)
MsgBox(文件结尾和TextLine)
循环
FileClose(1)
Dim TextLine As String
FileOpen(4,TESTFILE,OpenMode.Input)
不做EOF时(4)
TextLine = LineInput(4)
MsgBox(文件结尾和TextLine)
循环
FileClose(4)
两种情况之间的差异
pl EOF(4)4是什么?
4是FileOpen函数,用于识别正在打开的文件。
请检查:
http://msdn.microsoft .com / zh-CN / library / 7ct2yy4s(v = vs.90).aspx [ ^ ]
http://msdn.microsoft.com/en-us/library/afh37kh8(v = VS.90)的.aspx [ ^
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 ?
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[^]
这篇关于请参阅VB.Net中的EOF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!