reading records VB.net

  • Thread starter Thread starter marfi95
  • Start date Start date
M

marfi95

I have a file that has it's rows terminated by CRLF's, so I can use
peek/seek/readline to read the records. However, I need to read a
record based on its record number in the file. For example, I might
need to read the 500th record, yet I dont want to have to do a readline
for the 1st 499 first.

Thanks
Mark
 
I have a file that has it's rows terminated by CRLF's, so I can use
peek/seek/readline to read the records. However, I need to read a
record based on its record number in the file. For example, I might
need to read the 500th record, yet I dont want to have to do a readline
for the 1st 499 first.

Thanks
Mark

If the "records" are not a fixed length, then you will have to do a loop
using readline to get to your record.

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top