NSData オブジェクトをファイルに書き込もうとしています。使用しているコードは次のとおりです。私が抱えている問題は、ファイルが作成されないことです。
// ファイル NSFileManager を作成 *filemgr; NSData *databuffer;
filemgr = [NSFileManager defaultManager];
databuffer = [filemgr contentsAtPath: @"/Users/imac/Desktop/mydata.dat" ];
// write to file
databuffer = [filemgr contentsAtPath: @"/Users/imac/Desktop/mydata.dat" ];
[filemgr createFileAtPath: @"/Users/imac/Desktop/mydata.dat" contents:receivedData attributes: nil];
どんな助けでも大歓迎です。