Re: Files larger than 2.9 gigs
Re: Files larger than 2.9 gigs
- Subject: Re: Files larger than 2.9 gigs
- From: Markus Hitter <email@hidden>
- Date: Wed, 21 Dec 2005 21:53:20 +0100
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).
Markus
- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/
_______________________________________________
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