I have a code
and this code is in a function which is called more than hundred of times.Code:FILE *opfile = fopen("output.txt", "w");
And sometimes opfile == NULL, which I think is unbelievable. How can writing to a file generates an error? Does anyone encounter this problem before?
Thanks alot for your help.