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