Explain what are the measures that can be adopted to avoid errors in File Processing?
Submitted by: MuhammadFollowing are the measures that can be adopted to avoid errors in file processing-
ferror() function can be used to detect any error during file accessing.This function will return a zero when there is no error or vice-versa.
FILE *fptr
if(ferror(fptr)==0)
printf(“n The file is available for processing”);
else
printf(“n Error in accessing file”);
To verify whether a file exists in the disks,the following definitions will help.
if(fptr==NULL)
printf(“n No content or file does not exist”);
Submitted by: Muhammad
ferror() function can be used to detect any error during file accessing.This function will return a zero when there is no error or vice-versa.
FILE *fptr
if(ferror(fptr)==0)
printf(“n The file is available for processing”);
else
printf(“n Error in accessing file”);
To verify whether a file exists in the disks,the following definitions will help.
if(fptr==NULL)
printf(“n No content or file does not exist”);
Submitted by: Muhammad
Read Online Science Teacher Job Interview Questions And Answers
Top Science Teacher Questions
☺ | Tell me why teaching instead of industry? |
☺ | Tell me what are your career goals as a teacher? |
☺ | So tell me about yourself? |
☺ | Tell me the role of ethics within your CS program? |
☺ | Please explain how will you prepare students for standardized assessments? |
Top Teaching Categories
☺ | English Teacher Interview Questions. |
☺ | ICT Teacher Interview Questions. |
☺ | Physics Teacher Interview Questions. |
☺ | Preschool Teacher Interview Questions. |
☺ | Teaching Assistant Interview Questions. |