Re: Files larger than 2.9 gigs
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