SA-MP/server/runutil.cpp

16 lines
261 B
C++
Raw Permalink Normal View History

#include <stdio.h>
//----------------------------------------------------
int CanFileBeOpenedForReading(char * filename)
{
FILE *f;
if(f=fopen(filename,"r")) {
fclose(f);
return 1;
}
return 0;
}
//----------------------------------------------------