When an error encountered during file processing, the program execution will be terminated and error messages will be displayed. Following measures may be adopted to identify of avoid errors during file processing :
FILE *fptr;
if(ferror(fptr)==0)
printf("\n The file is available for processing.");
else
printf("\n Error in accessing the file!");
if(fptr == NULL)
printf("\n No content or file does not exist");
if(feof(fptr) == EOF)
printf("\n End of file is reached");
Entering an invalid file name or trying to write data to a write protected disk are some of the other reasons for errors during file processing.
We Are Currently Working On Our Android Application Development and We already have two YouTube channels their name is CodeX or NightHawk. CodeX is for programming related videos and NightHawk is for online game streaming so please supporting us and Subscribe to our channels, Thank you