SA-MP/server/runutil.cpp

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;
}
//----------------------------------------------------