C++ Code to write appearing text in a file
#1
Posted 22 November 2011 - 03:30 AM
#2
Posted 29 December 2011 - 08:49 AM
Edited by Ebsuru, 29 December 2011 - 08:50 AM.
#3
Posted 29 December 2011 - 08:23 PM
I want to use it in a program which generates exam results. The user inputs his data -> the program processes it -> Then it shows the output(like in which subject A+, A-, total mark, GPA etc). I want to write all the appearing texts of the output of to a txt file so it can be saved as record. Various users data will surely vary, so "ofstream" will not work I think.
#4
Posted 27 January 2012 - 03:46 AM
Oh, a reply after such a long time.
I want to use it in a program which generates exam results. The user inputs his data -> the program processes it -> Then it shows the output(like in which subject A+, A-, total mark, GPA etc). I want to write all the appearing texts of the output of to a txt file so it can be saved as record. Various users data will surely vary, so "ofstream" will not work I think.
What?
ofstream will work, why do you think it might not work? the ofstream from the standard namespace just creates the fstream object for output. Doesn't mean it has to be constant.
Similar Topics
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users