Cannot write or create file (file or disk is read-only)

What happened

You tried to create or write to a file in a directory or drive to which you don't have write access through your operating system.

For example, you may be trying to create a file on a write-protected disk or write to a directory whose files are read-only.

What you can do

Check your access and try again.