Problem
1. What happens if you try to open a file for reading that doesn't exist? What happens if you try to open a file for writing that doesn't exist?
2. What happens if you try to open a file for writing, but the file or device is write protected (sometimes called read-only)? Try it out with a short test program.