Re: How to split a big file ?
Re: How to split a big file ?
- Subject: Re: How to split a big file ?
- From: Dirk Stegemann <email@hidden>
- Date: Mon, 20 Mar 2006 19:41:42 +0200
Hello,
Am 20.03.2006 um 18:30 schrieb Michaël Parrot:
I would like split file with 10MB (or more) segment.
But, when split 250MB or more datas, OS X swap and use more RAM.
Also, I try it with split command.
The split command isn't working for you?
I never tried it programmatically from within an application using
NSTask or similar, but I think that NSTask should create an own
process which runs the command.
Therefor, whatever split tries to do, your application's memory usage
shouldn't be affected.
Regarding your code:
it seems you're reading all the data before writing it back -- I can
image that 'spli' does it a smarter way.
Usually, you'd call split the following way to get 10MB-pieces:
% split -b 10m path/to/input/file path/to/output/file
wheras the output files are named differently with your given name as
base name.
Best regards,
Dirk Stegemann
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden