摘要:
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 阅读全文
posted @ 2013-03-26 17:04
流云飞飞
阅读(3179)
评论(0)
推荐(1)

浙公网安备 33010602011771号