Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ilovevnn

macrumors newbie
Original poster
Dec 3, 2008
1
0
Dear All,

We are using iPhone 2.5G Firmware 2.1 Jailbreak with Apple SDK for 2.1.

I have issues with writing data (array of byetes) into file under /var/mobile/Documents. For example:

NSData* data;
BOOL ret = [data writeFile:mad:"/var/mobile/Documents/song.mp3"];

=> return error. => Cannot create a song file.

Would you please help me if you have indeas?
Thank you
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.