读取文件

[复制链接]
查看11 | 回复1 | 2013-6-26 09:54:45 | 显示全部楼层 |阅读模式
CString str;
CFile file("password.ant",CFile::modeRead);
int length=file.GetLength();
file.Read(&str,length);
file.Flush();
file.Close();
那位高手看一下,这哪里有问题, 非常感谢

回复

使用道具 举报

千问 | 2013-6-26 09:54:45 | 显示全部楼层
CSatring str;CFile file;file.Open("password.ant",CFile::modeRead);你改成这样试一下,我不知道对不对。!!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行