Choose Category
<code> //ABORT() FUNCTION //abort - Exit the program without exit() function #include<iostream.h> #include<fstream.h> #include<conio.h> #include<stdlib.h> int main() { char *f =" ABORT FUNCTION"; fstream fs; fs.open("forget.txt",ios::in); if( fs!= NULL) { cout<< f; } else { cout<<"error opening file"; abort(); } return 0; }