C++基础:怎样判断某一文件是否存在
摘要:
C++基础:怎样判断某一文件是否存在很简单的一种办法:#include <iostream>#include <fstream>using namespace std;#define FILENAME "stat.dat"int main(){fstream _file;_file.open(FILENAME,ios::in);if(!_file){cout<<... 阅读全文
posted @ 2005-11-10 15:39 痛并快乐着 阅读(4364) 评论(0) 推荐(0) 编辑