Question - When an input file is opened, what are the possible errors that may occur?
Answer -
1. 1st condition may be that the file is protected against access, here it terminates abruptly.
2. 2nd condition may be that file exists, then we need to create the output file.
3. If file with the same name exists then it may be deleted or program may be aborted.
4. In another case the system may ask the user to replace the existing file or abort the program.