Char * p;
CFileException mExcept;
The file Open (wenjianming CFile: : modeRead, & amp; MExcept);
Int ilen=2 * file. GetLength ();
P=new char [ilen + 1];
Ilen memset (p, 0, + 1);
File. Read (p, ilen);
P [ilen];
Wenjianming=p;
file.Close();
CodePudding user response:
http://blog.csdn.net/qq_18297675/article/details/51752937CodePudding user response:
file. Open (wenjianming, CFile: : modeRead | CFile: : typeText, & amp; MExcept);
CodePudding user response:
As long as you can read the file content, the code is a problem of your file, he is a binary file is not a text file, or try upstairs, remember the default text, only if the binary markCodePudding user response:
Wenjianming=p;What do you mean?