in C when we close a file pointer using fclose how can we be sure whether the file is properly closed or not?
ptr = fopen("File1","w");
if ( ptr == NULL)
printf(" closed the file ");
printf("\n file not closed ");
can i check like this for the file closing?