请参阅VB.Net中的EOF [英] Pls Mean in EOF in VB.Net

查看:402
本文介绍了请参阅VB.Net中的EOF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆