RIAS
asked on
Streamreader to read specific line
Hi,
I am using visual studio 2005.How to use stream reader to read specific line number in a text?
Cheers
I am using visual studio 2005.How to use stream reader to read specific line number in a text?
Cheers
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
StreamReader.BaseStream Property?
No. Just declare your streamreader and a string:
Dim oRead As New IO.StreamReader(FileName)
Dim sTemp As String
Then use the loop above to read the 5th line. Change the value to read whichever line you wish to read.
Dim oRead As New IO.StreamReader(FileName)
Dim sTemp As String
Then use the loop above to read the 5th line. Change the value to read whichever line you wish to read.
http://stackoverflow.com/q