流云飞飞

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2013年3月26日

摘要: 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 流云飞飞 阅读(3115) 评论(0) 推荐(1) 编辑