Computer Science for IGCSE & O level - Programming (Section 13 - No. 3)

What happens if you attempt to read from a file that hasn't been opened first?
The program will automatically open the file.
The data will be read correctly.
An error will likely occur.
The file contents will be printed to the console.

Explanation

You must open a file before you can read from it.

Comments (0)

Advertisement