76.4k views
3 votes
What happens if you try to open a file for writing, but the file or device is writeprotected (sometimes called read-only)

1 Answer

5 votes

Answer:

If it is for read-only, an exception is thrown.

Step-by-step explanation:

User Reddi
by
7.4k points