#include "machine.h"Include dependency graph for FileExist.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Functions | |
| BOOL | FileExist (char *filename) |
| BOOL FileExist | ( | char * | filename | ) |
Definition at line 12 of file FileExist.c.
00013 { 00014 BOOL retour=FALSE; 00015 00016 #ifdef _MSC_VER 00017 WIN32_FIND_DATA FindFileData; 00018 HANDLE handle = FindFirstFile (filename, &FindFileData); 00019 if (handle != INVALID_HANDLE_VALUE) 00020 { 00021 FindClose (handle); 00022 retour=TRUE; 00023 } 00024 else retour=FALSE; 00025 #else 00026 FILE* tmpFile; 00027 if( (tmpFile=fopen(filename,"r")) == FALSE ) 00028 { 00029 retour=FALSE; 00030 } 00031 else 00032 { 00033 fclose(tmpFile); 00034 retour=TRUE; 00035 } 00036 #endif 00037 00038 return retour; 00039 }
1.5.1