Seek Method, is it the right thing to use?

  • Thread starter Thread starter ataanis
  • Start date Start date
A

ataanis

I just realized the SEEK method has the same problem, from what I
understand, it sets the file pointer to the beginning of the file, and
can't be changed!!! I need a way to set the streamreader to a certain
place in the line, I already know the column number , am I right that
seek is not the right thing to use here? I already tried read() and
doesn't work either.

thanks
 
basically I need to be able to read from a specified location on the
line, can you tell me how to do that?
 
You need to be more clear about what you are trying to do. Are you opening a
Database file like Access and trying to read some data? ( you mentioned in
your original post that you already had the "Column" ) Seek is usually
associated with opening a file and manually reading the raw data, usually
using a FileStream. It can be used with Binary files and a lot of others as
Cor mentioned. As far as I know, there is no SEEK method for accessing a
database file. How about an example of what you have done so far?
james
 
I just realized the SEEK method has the same problem, from what I
understand, it sets the file pointer to the beginning of the file, and
can't be changed!!! I need a way to set the streamreader to a certain
place in the line, I already know the column number , am I right that
seek is not the right thing to use here? I already tried read() and
doesn't work either.

Usually Binary open lets you pick any bits you want from out of any file.
Haven't needed to try it with .Net so far.
 
Back
Top