Fatal Error C1085

Cannot write filetype file: 'file': message

To fix by checking the following possible causes

  1. Drive is read-only.

  2. Drive is full.

  3. Sharing violation.

  4. If the message says "bad file number", the file may have been closing in the foreground while compiling in the background.