Quote Originally Posted by citizen
Stop opening and closing the file over and over again. fopen returns a NULL if it fails. That's all that you need to check.
there's a reason why i'm doing that.. but i'm not going to explain it now..
the question is.. does the problem come from there?!?!