1. vaza's Avatar
    when i use the fwrite function the app crashes to the summerboard..
    do you know mabey whats the problem?
    Code:
      FILE * pFile;
      char buffer[] = { 'x' , 'y' , 'z' };
      pFile = fopen ( "file" , "w+" );
    
      fwrite (buffer , 1 , sizeof(buffer) , pFile );
      fclose (pFile);
    Last edited by vaza; 2008-05-02 at 05:25 PM.
    2008-05-01 09:17 PM
  2. NetMage's Avatar
    Code seems out of order. Why is pFile a FILE* and NSString*?
    Starlight Computer Wizardry
    Pocket-sized Development
    Follow me on twitter: @NetMage
    2008-05-02 02:53 PM
  3. vaza's Avatar
    wrong code :P
    edited..
    permmisions 777
    2008-05-02 05:26 PM
  4. NetMage's Avatar
    I would put in a test or an NSLog to verify that the return from fopen is a valid pFile and not an error indication.
    Starlight Computer Wizardry
    Pocket-sized Development
    Follow me on twitter: @NetMage
    2008-05-02 11:24 PM
  5. vaza's Avatar
    how do i do this?
    2008-05-03 01:06 AM
LINK TO POST COPIED TO CLIPBOARD