On Sat, 23 Oct 2004 08:47:03 -0700, Jarod wrote:
Hey
I don't know how to start reading a text file from a 30 line ? I got an idea :
For i=1 to 30
streamReader.readline()
Next
but if it would be 2000 line it won't be a robust code... Is there any
better way ?
Jarod
Is each line in the file the same length? If so, you could use the seek
method of the stream. Just calculate the position to seek to using the
following formula:
iSeekPos = (iLineNo - 1) * iLineLength
If the lines in the file are not all the same length, then you will have to
use a loop.
--
Chris
dunawayc[AT]sbcglobal_lunchmeat_[DOT]net
To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.