Dim oFile As System.IO.File
Dim oRead As System.IO.StreamReader
Dim LineIn As String
oRead = oFile.OpenText(“C:sample.txt”)
While oRead.Peek -1
LineIn &= oRead.ReadLine()
End While
RichTextBox1.Text = LineIn
oRead.Close()
July 17, 2006 by ashraf
Dim oFile As System.IO.File
Dim oRead As System.IO.StreamReader
Dim LineIn As String
oRead = oFile.OpenText(“C:sample.txt”)
While oRead.Peek -1
LineIn &= oRead.ReadLine()
End While
RichTextBox1.Text = LineIn
oRead.Close()
Hi Author thank for your code guiding
I have tried to find it for a long time
now it absolutely aprreciate me any more
I hope you can be my brother
ok bye
best wishes
Randall
He that is warm thinks all so…
I want to read until a “tab character”. How can I do it?
Eg:
VB.net Visual Basic dot net
There is a tab character Between the “VB.net” and “Visual Basic dot net”. I want to read it in 2 different strings.
use split
Dim oFile As System.IO.File
Dim oRead As System.IO.StreamReader
Dim LineIn As String
oRead = oFile.OpenText(”C:\sample.txt”)
While oRead.Peek -1
LineIn &= oRead.ReadLine()
End While
RichTextBox1.Text = LineIn
oRead.Close()