Hi!
I'm using the CFile.Read() for reading a file, and have to set a char[] buffer. When I copy the char[] into a CString a can see the NULL-Terminator of the char[] as garbage chars( something like "ÌÌÌÌÌÌ"...).
I got rid of it by using a loop and ommitted the last
char[] element.
Is there a better way to get rid of the NULL at the end of a char[]?
bye
Chris
I'm using the CFile.Read() for reading a file, and have to set a char[] buffer. When I copy the char[] into a CString a can see the NULL-Terminator of the char[] as garbage chars( something like "ÌÌÌÌÌÌ"...).
I got rid of it by using a loop and ommitted the last
char[] element.
Is there a better way to get rid of the NULL at the end of a char[]?
bye
Chris