Check for i/o errors in fclose() so that a full disk doesn't almost guarantee truncation of the file being edited.
Check for i/o errors in fclose() so that a full disk doesn't almost
guarantee truncation of the file being edited.

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase