• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Files larger than 2.9 gigs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Re: Files larger than 2.9 gigs (From: <email@hidden>)
 >Re: Files larger than 2.9 gigs (From: Markus Hitter <email@hidden>)

  • Prev by Date: Re: Files larger than 2.9 gigs
  • Next by Date: Text Wrap in NSTextField
  • Previous by thread: Re: Files larger than 2.9 gigs
  • Next by thread: Re: Files larger than 2.9 gigs
  • Index(es):
    • Date
    • Thread