| || |
How to read a particular line from a file
How to read a specific value from a file and how to read the nth line from a file.
Re: How to read a particular line from a file
here's your pseudo-code:
<font class="small">Code:</font><hr /><pre>
string ReadLineFromFile (int LineNumb)
int i = 1
open file for reading
while (not end of file)
if (i == LineNumb)
sRetVal = ReadLine
string temp = ReadLine
Once you have your string, you can parse it any way you like by using functions like StrPos, SubStr, GetField, etc...
hope this helps.