i want to know how to check if the file already exists before creating the file?
puts("please enter a file name to create:\n");
scanf("%s", &file_name);
create_pointer = fopen( file_name, "ab");
if( create_pointer == NULL)
//create file//
else
{
//file already exist// how would you check if the file already exists ??
}