remo
May 4th, 1999, 09:25 AM
hi
i have big problem with a simple thing
i can't check whether the file is open or not.
can somebody tell me translate the following questionmarks into c++ code. PLEASE HELP
thanks
in C
FILE * FpIn=NULL;
FpIn=fopen(FileName,"r");
if(FpIn!=NULL)
{
}
now in c++
ifstream InFile(FileName, ios::in);
if(?????????????????)
{
}
i have big problem with a simple thing
i can't check whether the file is open or not.
can somebody tell me translate the following questionmarks into c++ code. PLEASE HELP
thanks
in C
FILE * FpIn=NULL;
FpIn=fopen(FileName,"r");
if(FpIn!=NULL)
{
}
now in c++
ifstream InFile(FileName, ios::in);
if(?????????????????)
{
}