> I'm creating a class to read some text datafiles.
>
[quoted text clipped - 17 lines]
> But how can I know the exact position, discarding the buffered data that was
> not returned in the ReadLine method?
I'm afraid you can't, as far as I know. If the file is encoded in a
text encoding which is fixed-width, you could keep track of how much
text has been read and multiply that by the width, but that's the only
solution I know of :(

Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
ferreira - 05 Mar 2006 15:46 GMT
Hi,
Thanks for your reply.
The files are ASCII encoded, so the method you pointed works and is also
very simple :)
Thanks for the suggestion!
Pedro
> > I'm creating a class to read some text datafiles.
> >
[quoted text clipped - 22 lines]
> text has been read and multiply that by the width, but that's the only
> solution I know of :(