sumeet
Member
we have created a program that reads only the first line from textfile but we r not able to read next line.
our codes are as follows:-
Dim fstream As FileStream = New FileStream("D:\john\abc.txt", FileMode.OpenOrCreate, FileAccess.ReadWrite)
Dim br As StreamReader = New StreamReader(fstream)
Dim bw As StreamWriter = New StreamWriter(fstream)
br.BaseStream.Seek(0, SeekOrigin.Begin)
str = br.ReadLine()
TextBox1.Text = str
our codes are as follows:-
Dim fstream As FileStream = New FileStream("D:\john\abc.txt", FileMode.OpenOrCreate, FileAccess.ReadWrite)
Dim br As StreamReader = New StreamReader(fstream)
Dim bw As StreamWriter = New StreamWriter(fstream)
br.BaseStream.Seek(0, SeekOrigin.Begin)
str = br.ReadLine()
TextBox1.Text = str