Answer:
The statements are given below:
output.open("pi"); // opening the file by the of stream object
output << "3.14159";
output.close(); // closing the file
Explanation:
In this we open the file with the help of output stream object .The statement output.open("pi"); is opening the file after after opening the file "pi". The output object print the 3.14159 message in console and finally the output stream file is close with the help of output.close() statements .