回复 9楼 TonyDeng
另外问一句。fclose 在c++可以用吗?
2012-05-13 23:49
2012-05-13 23:52
2012-05-13 23:55

2012-05-13 23:59

2012-05-14 00:03
2012-05-14 00:03
程序代码:
success = file.open("password", ios.nocreate);
file.close();
if (!sucess)
{
file.open("password", ios.create);
// 创建密码文件
file.seek(); // 定位到文件头
}
else
{
file.open("password");
}
// 从此密码文件已经存在并打开,文件指针也在文件头
……
file.close();

2012-05-14 00:10
2012-05-14 00:13
2012-05-14 02:40