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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

transfer of 9GB File piece by piece

Status
Not open for further replies.

jojo11

Programmer
Feb 2, 2003
189
US
I need to break up a file into smaller parts (Current file is 9GB). Is there a way to move part of the file into a smaller new file and know where we left off to begin another transfer, and another, and another?

Thanks

-------------------------------------------
Ummm, we have a bit of a problem here....
 
Yep, you can open the file, read out n bytes of data, and save it to a new file. (and repeat until the end)

But if you are going to do this I'd consider making a header for each file section, such as the first n chars = file name, the next 2 bytes = parts (ie if you split it into 4 parts, I'd do 1 of 4, I'd also record the file size, adn maybe a checksum.)

That way you can reconstruct it.

I assume that you are going to write an ap to break down / rebuild this file, or do you want to extract say days 1 - n from the file and save as week 1, the next as week 2 etc ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top