Hi,
How to count character from a text file in vb.net?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Jul 21, 2011, 8:32 AM
Gurjeet SinghPosted Jul 22, 2011, 1:11 AM
Dim M As Integer
Dim j As Integer = -1
Dim myReader As StreamReader = New StreamReader("d:\SP Change.txt")
Dim line As String
Do
M += 1
line = myReader.ReadLine()
Loop Until line Is Nothing
myReader.Close()
myReader = Nothing
TextBox1.Text = CStr(M)
End Sub