|
From: Abhijit S. <mu...@gm...> - 2002-10-09 15:26:00
|
> Have you forgotten to include a header file? Does conio.h have the FILE > declaration in it? Nope, <stdio.h> does. > Also, your if statement ( if (fp) ), won't that return true is the pointer > is anything but null? Shouldn't it be *fp ? Or something? No, actually, if(fp) is right. This is basically if(fp != NULL), which is what we're checking for. We're checking the pointer, not the value of the structure (which could be anything, it's totally unrelated to the pointer). ___________________________________________________________ Abhijit Shylanath E-mail: mu...@gm... || ibr...@bi... Web-site: http://mudeth.tripod.com/ |