关于CFile.Read 读取文字字符串的问题
我需要读取从当前位置开始的指定长度的文字字符串
如果我用char来取都是乱码 ,
如果用TCHAR来取到是可以取出来 可是长度总是不对。后面跟一大串乱码
比如我想去之后4个字节长度的字符串
char :
char chIndex[4 * sizeof(char)];
filelen -= m_File.Read(chIndex , sizeof(chIndex));
TCHAR chIndex[sizeof(TCHAR)];
filelen -= m_File.Read(chIndex , sizeof(chIndex));
请问该如何处理呢 ?