Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

breaking up large text file

Status
Not open for further replies.

spuppett

Programmer
Jan 25, 2003
48
US
Does anyone know how I could go about breaking up a large (770 mb) text file into smaller files?

I can't seem to find any ideas anywhere. I have a file, that contain archived emails. I need to parse them into their indivdual emails. i know how to do that part of it, but I in-order for that method to work, I need to be able to start reading from a specified location in the file, which I don't know how to do, or replace the section I've already read with a nullstring, which I don't know how to do either. The file is obviosly too big to fit in a variable, which is what I have been doing with this project.

Any one have any suggestions or ideas??
 
Why not open them up in your email program and then create separate email boxes to move them to?

If they're sequential files, you'll read the data in differently than if they're not. Not knowing what email program you've stored them from, if any, makes it difficult to answer your question.

Lee
 
They are outlook .mbx files. The reason that I'm doing this is that my boss is trying to get away from Outlook for archiving, for what ever reason, and also I'm putting them in a db so that we can query and look stuff up quickly.

I've gotten this to work really well on smaller files. The only problem I'm having is that this file is too big to store in a string, so I need to break it apart, but I can't do it arbitraily, as I don't want 1 email in 2 diffrent files.

Thank you for your reply.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top