Cannot write filetype file: 'file': message
If the message "bad file number" is given, this error may have been caused by saving a file in the foreground while it is being used by a background compilation.
This error can be caused by attempting to write to a read-only drive, a drive that is full, or by a sharing violation.