Re: Files larger than 2.9 gigs
Re: Files larger than 2.9 gigs
- Subject: Re: Files larger than 2.9 gigs
- From: Shawn Erickson <email@hidden>
- Date: Wed, 21 Dec 2005 13:19:11 -0800
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];
-Shawn
_______________________________________________
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