Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

vb.net read text file line by line

Dim reader as StreamReader = My.Computer.FileSystem.OpenTextFileReader(filetoimport.Text)
Dim a as String

Do
   a = reader.ReadLine
   '
   ' Code here
   '
Loop Until a Is Nothing

reader.Close()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #read #text #file #line #line
ADD COMMENT
Topic
Name
4+3 =