天天看點

判斷檔案路徑是否有效

#include <io.h> 

 if( (_access(CStr, 0 )) == -1 )   { 

    printf( "%s%s%s","檔案路徑(",CStr,")錯誤!"  );       

    exit(0);

   }