Check If A File Path Exists In C

[Solved] Check If A File Path Exists In C | Php Frameworks Codeigniter - Code Explorer | yomemimo.com
Question : c check if file was created

Answered by : wild-wildebeest-u997xgv9xwwc

int canCreateFile(char* path)
{	FILE* file = fopen(path, "w");	if(file) {	fclose(file);	return 1; }	return 0;
}

Source : | Last Update : Mon, 06 Jul 20

Answers related to check if a file path exists in c

Code Explorer Popular Question For Php Frameworks Codeigniter