When a write operation (for example, fputc(), fwrite() ) is invoked, the file specified must have been opened for writing.
The write operation fails.
Open the file with a mode that supports writing. The following modes do not support writing: 'r', 'rb'.
EDC4SP