Re: Files larger than 2.9 gigs
Re: Files larger than 2.9 gigs
- Subject: Re: Files larger than 2.9 gigs
- From: Shawn Erickson <email@hidden>
- Date: Wed, 21 Dec 2005 13:11:47 -0800
On Dec 21, 2005, at 12:53 PM, Markus Hitter wrote:
Am 21.12.2005 um 20:35 schrieb <email@hidden>
<email@hidden>:
I'm not real good with files in plain C so the information I've
found on pwrite is not very helpful. does any one have a link to some
example code using pwrite?
No idea why the group here uniquely recommends the uncommon pwrite
() while there's write() and fwrite() as well. Any basic C textbook
should show you a valid fopen(); fread()/fwrite(); fclose()
sequence, but a already recommended shell command system("cat f1 f2
f3 > fx"); is very likely faster and runs in a separate thread/task
already.
For the progress bar, you can check the size of the resulting file
periodically. Not too often or performance will suffer.
If you want to learn about high performance file I/O, look up the
"cat" command's source in one of the various open source Unices
(OpenDarwin is down right now).
Personally I would use dd instead of cat for something like this if
you really want to use an external process.
-Shawn
_______________________________________________
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