warthurton has asked for the wisdom of the Perl Monks concerning the following question:
I'm thinking about justing reading in x bytes, and saving out those bytes. Then I can just read the file back and append each chunk out to recreate the original file.
My question is. Is this the best way to go about it? I've been googling around to see if there was a best way to do this.
Should I read x + 100k for each piece to make sure that it matches up? I'm planning on taking a MD5 of the original and each piece to verify that it is good. I also probably will zip and encrypt each piece. Those parts are easy.
I need this to work on an os where zip or unix utilites will not be available.
Any ideas would be greatly appreciated.
Wayne
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Splitting a binary file
by graff (Chancellor) on Apr 01, 2005 at 02:38 UTC | |
Re: Splitting a binary file
by cazz (Pilgrim) on Mar 31, 2005 at 22:46 UTC | |
by warthurton (Sexton) on Apr 01, 2005 at 00:38 UTC | |
Re: Splitting a binary file
by BrowserUk (Patriarch) on Apr 01, 2005 at 04:48 UTC |