#include <stdio.h>
int file_was_created(char *path) {
FILE *file = fopen(path, "w");
if (file) {
fclose(file);
return 1;
}
return 0;
}
int main() {
char path[] = "d:\\development\\test.txt";
printf("%i\n", file_was_created(path));
return 0;
}
/*
run:
0
*/