00001 #include "FileUtil.hh" 00002 00003 #include <iostream> 00004 #include <fstream> 00005 using std::ifstream; 00006 #include <iomanip> 00007 #include <cstdlib> 00008 00009 int FileExists(const char* path) 00010 { 00011 int ret; 00012 ifstream chkFile(path); 00013 00014 if (chkFile) 00015 ret = 1; 00016 else 00017 ret = 0; 00018 00019 chkFile.close(); 00020 return ret; 00021 }
1.3.4