THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 25/01/2004 at 15:41, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.206
Platform:
Language(s) : C++ ;
---------
Hi, im quite new to file io with c++ sdk
The SDK states that BaseFile::ReadBytes will not be platform independant.
To make sure platform idependancy, what would be the best method to read a 64 byte string from a file?
current im using this
char info[64];
file->ReadBytes(&info, sizeof(info));
this works fine, but would it be wise to use the BaseFile::ReadChar() 64 times instead?
and while im here, how can I convert a char[] array into a String, so I can use the GePrint method.
Thanks