• 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
Problems during file writing or During Type Casting ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Problems during file writing or During Type Casting ?
      • From: Christian Walther <email@hidden>
  • Prev by Date: Grab keyboard focus?
  • Next by Date: Re: Problems centering window
  • Previous by thread: Re: Grab keyboard focus?
  • Next by thread: Re: Problems during file writing or During Type Casting ?
  • Index(es):
    • Date
    • Thread