Computing‎ > ‎Programming‎ > ‎

VBN File Handling

FileSystem.LineInput Method

 

http://msdn.microsoft.com/en-us/library/microsoft.visualbasic.filesystem.lineinput(v=vs.110).aspx

 

 

"TESTFILE" = Dim File As String = "\\CICFS01\Users$\enio.fernandes\Desktop\Test.txt"

 

 

Dim TextLine As String 

' Open file.

FileOpen(1, "TESTFILE", OpenMode.Input)

' Loop until end of file. 

While Not EOF(1)

    ' Read line into variable.

    TextLine = LineInput(1)

    ' Print to the console.

    Console.WriteLine("1", TextLine)

End While

FileClose(1)


Comments