Chad Grenier wrote:
I need to write a lot of integers to a binary file on Win32, iOS, and Android. Is there a way to do this? CCFileUtils only has a get method, not a write.
You can use standard c interface to save your binary file.
Use CCFileUtils::getWriteablePath() to get the directory which is writeable.
char* pszDir = CCFileUtils::getWriteablePath().c_str();
FILE* fp = fopen(pszDir, "wb");
if (fp != NULL)