hi all,
i am not able to open text file in simulator.
the code i have written in simulator is

ifstream infile("file.txt",ios::in)
if(!infile)
{
      printf("\nerror");
      exit(1);
}
else
     printf("\n fileopened");

but it alsways printing "error" only
could  any one tell me whether this is correct or not
Thank you.

raghu
--
Raghavendhar Konnoju,
780 East Irby,
Beaumont  TX-77705
409-813-2242
[EMAIL PROTECTED]

Reply via email to