我不能读取文件中的内容,如果我在file...If中手动写入某些内容,如果我去手动在文件中写入内容并尝试读取,则已存在的内容已经可以读取contents...but。我无法读取我有edited..check下面的代码用于读取的内容……
CFile file;
if(file.open("C:\\users\\rakesh\\Desktop\\myText.txt",CFile::modeRead))
{
return false;
}
TCHAR buffer[50];//say content is small
file.read(buffer,50);
file.close();
https://stackoverflow.com/questions/2317127
复制相似问题