Line input

lpaul

Active member
Joined
Dec 7, 2005
Messages
27
Programming Experience
Beginner
I have the following code that is vb6 that I need to convert to vb.net

vb6
MyFile= Freefile
'Open pathnfile For Input As MyFile
'Do Until EOF(MyFile)
' Line Input #MyFile, Linetext

This is how I am trying in vb.net but not sure where to place myfile:

FileOpen(1, pathnfile, OpenMode.Input)
Do Until EOF(1)
Linetext = LineInput(1)
Debug.WriteLine(Linetext)
 
Back
Top