#include #include #include "functions.h" int fileExist(char *path){ FILE *f = fopen(path, "r"); if (f == NULL) return -1; fclose(f); return 0; }