Re: Files larger than 2.9 gigs
Re: Files larger than 2.9 gigs
- Subject: Re: Files larger than 2.9 gigs
- From: John Stiles <email@hidden>
- Date: Wed, 21 Dec 2005 15:48:38 -0800
On Dec 21, 2005, at 12:53 PM, Markus Hitter wrote:
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.
pwrite is the most direct route to the file system, and doesn't rely
on a file cursor (which is a personal preference of mine, but not a
critical thing). fwrite adds in a level of buffering that consumes
some cycles, which you may not want. write just calls pwrite.
They all get the job done, though.
_______________________________________________
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