Problems during file writing or During Type Casting ?
Problems during file writing or During Type Casting ?
- Subject: Problems during file writing or During Type Casting ?
- From: "Tom Wenger" <email@hidden>
- Date: Sat, 20 May 2006 15:54:40 +0530
Hai All,
I am trying to write certain details into another file.Here i have an
NSArray called object.I need to write the informations inside this NSArray
into another file,for that i gave the following codes But the result i am
getting in the newly created file is a
blank one.What would i add more in the bellow code inorder to achive my
objective.
NSArray *object=[_inspectingGraphicView graphics];
NSString *GetValue=(NSString*)object;
// get the path for saving the file
const char* thePath;
NSString *currentPath;
NSString *applicationName;
NSString* thePathString = [theSavePanel filename];
thePath = [thePathString cString];
// open a new file
FILE* theFile = fopen(thePath, "w");
if(theFile != NULL)
{
fwrite(GetValue,1,11111,theFile);
}
// close the file
fclose(theFile);
--
Thanks &Regards
TomWenger.
_______________________________________________
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