• 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: 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
  • Follow-Ups:
    • Re: Files larger than 2.9 gigs
      • From: John Stiles <email@hidden>
    • Re: Files larger than 2.9 gigs
      • From: <email@hidden>
    • Re: Files larger than 2.9 gigs
      • From: Shawn Erickson <email@hidden>
References: 
 >Re: Files larger than 2.9 gigs (From: <email@hidden>)

  • Prev by Date: Re: Versioning via build settings?
  • Next by Date: Re: Files larger than 2.9 gigs
  • Previous by thread: Re: Files larger than 2.9 gigs
  • Next by thread: Re: Files larger than 2.9 gigs
  • Index(es):
    • Date
    • Thread