0

how to create an output file and write output streams?? C++

I need a help... I need to add codes to create an output file and write output streams to the file (“output.txt”). and I need to print the content of “output.txt”. This is my code so far https://code.sololearn.com/cY1XFFSqYAmR any help or idea is great!

16th Jun 2017, 4:45 AM
Kurt Cobain
Kurt Cobain - avatar
1 Answer
0
https://www.tutorialspoint.com/cplusplus/cpp_files_streams.htm Check that like, it may help my i dea is to save all at once at the end of program and replace the old one, because you wanna save output of boy and girl in the same file output.txt right? hope you find some helpful
21st Jul 2017, 9:46 PM
Nhat Minh Nhan
Nhat Minh Nhan - avatar