read in only first x bytes of text file

  • Thread starter Thread starter Josh Golden
  • Start date Start date
J

Josh Golden

I have a text file of a database dump that is over 1 GB in size. I would
like to read just the first x number of rows, I don't care if its 10 or 50
or 100 rows, I just want to see some data to understand the structure,
column delimiters, etc.

can i do this with code?
 
* "Josh Golden said:
I have a text file of a database dump that is over 1 GB in size. I would
like to read just the first x number of rows, I don't care if its 10 or 50
or 100 rows, I just want to see some data to understand the structure,
column delimiters, etc.

Take a look at the 'System.IO.StreamReader' class and/or
'System.IO.BinaryReader'.
 

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

Back
Top