Hi Bill
i have added some code here in let me know if it works ;)
>
> #include <stdio.h>
> #include <stdlib.h>
int nErrCode = 0; /* to track the return values*/
/* --- Snip ---- */
> nErrCode = fprintf(fp,"%s",a); /* you can check how many
bytes were fprintf*/
nErrCode = fclose(fp);
if (nErrCode ==EOF) { /* use nErrCode to check what was
returned*/
> puts("close error");
> exit(EXIT_FAILURE);
> }
> return 0;
> }
> Sh..
