Hi everyone,
I'm pretty new to VB.net. I have vb code which parse some info and i want to change it to vb.net can anyone help me with this part of my code?
Dim appbase As String = AppDomain.CurrentDomain.SetupInformation.ApplicationBase()
For i = 0 To UBound(file_names)
System.IO.File.OpenText (appbase & "\" & file_names(i)) For Input As #1
Do While Not EOF#1
Dim ALineIn = LineInput(1), temp
Dim Delimiter As String
file_data = ALineIn.Split(Delimiter, " ")
file_data(j) = Trim$(temp)
j = j + 1
Loop
Close()
Next i
i made some changes inorder to be in vb.net but still the "For Input As #1" and "#1" in while loop is not working. It simply reads files in a path and goes to next one. there are three files
appreciate any help![]()
thanks


Reply With Quote



Bookmarks