--- In [email protected], "fund00_kr" <[EMAIL PROTECTED]> wrote: > > if (nErrCode ==EOF) { /* use nErrCode to check what was > returned*/ > > puts("close error"); > > exit(EXIT_FAILURE); > > }
Instead of puts(), use:
perror("fclose failed");
to (hopefully) tell you why it failed; needs errno.h.
John
