I am writing in C/C++ and am using fopwn and fwrite to write large blocks of binary data (250,000 bytes) into files in the Documents directory. I can see them under ITunes. Every so often, fwrite returns the wrong 'bytes written' value and things start to get messed up, several more fwrites may fail.
I need to get mor errror information on fwrite and fopen and I can't find specific IOS/IPhone information. Any pointers please?