//****************************************************************** //this is the way to open and close file using constructor class ios //****************************************************************** #include #include using namespace std; //========================================= int main(){ //creazione stream ofstream book("book"); //verifica apertura if(!book){ cout<<"Error! opening file not allowed\n!"; return 1; } book<<"File Test for open/close processing using constructor class ios\n"; book<