mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-23 06:57:31 +08:00
16 lines
261 B
C++
16 lines
261 B
C++
|
#include <stdio.h>
|
||
|
|
||
|
//----------------------------------------------------
|
||
|
|
||
|
int CanFileBeOpenedForReading(char * filename)
|
||
|
{
|
||
|
FILE *f;
|
||
|
if(f=fopen(filename,"r")) {
|
||
|
fclose(f);
|
||
|
return 1;
|
||
|
}
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
//----------------------------------------------------
|