Ok I will try this again,

FILE *fp;
if((fp=fopen("data","wb"))==NULL {
perror("fopen");
clearerr("fopen");
exit(EXIT_FAILURE);
}

Is this the way to use perror and clearerr ?

Bill

Reply via email to