摘要:
The following is the most common method for checking if file exist:#include <sys/stat.h>bool FileExist(const char* FileName){ struct stat my_stat; return (stat(FileName, &my_stat) == 0);}//Example Usageint main(int argc, char* argv[]){ bool v1 = FileExist("c:\\autoexec.bat"); boo 阅读全文