saqdotnet
Thursday, August 8, 2013
Read file Character by Character in vb.net
Dim currChar As Char
Dim data As String
Using sr As New StreamReader("C:\test.txt")
Do While sr.Peek <> -1
currChar = Chr(sr.Read)
data = data & currChar
Console.WriteLine(data)
Loop
End Using
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment