On 9/28/07, ravisankar kakumanu <[EMAIL PROTECTED]> wrote:
> #include <stdio.h>
> #include <math.h>
>
> main () {
>
> FILE *fp;
>
> fp = fopen("file.txt", "r");
> if(fp==NULL){
> printf("\n Cannot open file.txt file.\n");
> exit(1);
> }
> else {
> printf("\n file.txt File is Opened.\n");
>
> }
> }
>
> The file.txt is not having any value but surprisingly iam getting the
> following message when i run the above code
>
> file.txt File is Opened.
Are you saying file.txt does not exist or does not contain any data?
-- Brett
------------------------------------------------------------
"In the rhythm of music a secret is hidden;
If I were to divulge it, it would overturn the world."
-- Jelaleddin Rumi