int main(int argc, char *argv[])
{ ifstream inHandle;
Assembler obj;
if(argc!=2)
{ cout<<"InvalidInput ERROR";
}
else
{ inHandle.open("test.asm");
if(inHandle==0)
cout<<"FileNotFound ERROR";
else
obj.pass1(inHandle);
}
inHandle.close();
return 0;
}
this is my code for the main() function, i have tried entering the filename in every possible format but the control always jumps to..
if(inHandle==0)
cout<<"FileNotFound ERROR";
..Can anyone please suggest me what the problem could be?!?
NOTE: i am using TurboC++ v3.0