• 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: <email@hidden>
  • Date: Wed, 21 Dec 2005 16:22:41 -0500
  • Bounce-to: <email@hidden>


Heh, I'm never gonna get it straight when to use char and const char
etc.
Thanks :)
Mark.

On 12/21/2005, "Shawn Erickson" <email@hidden> wrote:

>
>On Dec 21, 2005, at 11:23 AM, <email@hidden>
><email@hidden> wrote:
>
>>
>> Well all I need to do is read files in parts from one place and write
>> them in to a single file on disk. basically taking file1 file2
>> file3 etc
>> and putting them all into a single file.
>> I tried this but it does not work:
>>
>> while(fileparts = [iter nextObject]){
>> FILE * dest = fopen([[panel filename]fileSystemRepresentation],"a");
>>
>> NSData * tmp = [NSData dateWithConentsOfFile:[filepart
>> objectForKey:@"Path"]];
>> char tdata[] = [tmp bytes];
>>
>> but the compiler errors out telling me that the Char array
>> initializer is
>> invalid.
>>
>> so I do char tdata = [tmp bytes];
>
>Try...
>
>const char* tdata = [tmp bytes];
>
>...if compiler warns then...
>
>const char* tdata = (const char*) [tmp bytes];
>
>-Shaw
_______________________________________________
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: Shawn Erickson <email@hidden>)

  • Prev by Date: Re: Files larger than 2.9 gigs
  • 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