Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

C++ Code to write appearing text in a file


  • Please log in to reply

#1
muhib1996

muhib1996

    Member

  • Member
  • PipPip
  • 91 posts
Suppose, I want to write all the appearing texts of a console in a .txt file. What should be the code?
  • 0

Advertisements


#2
Ebsuru

Ebsuru

    Member

  • Member
  • PipPip
  • 39 posts
What exactly will you be using this for? :huh: I could help you write up the code if I know what the purpose of it is. :thumbsup:

Edited by Ebsuru, 29 December 2011 - 08:50 AM.

  • 0

#3
muhib1996

muhib1996

    Member

  • Topic Starter
  • Member
  • PipPip
  • 91 posts
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.
  • 0

#4
AceInfinity

AceInfinity

    Visiting Staff

  • Visiting Consultant
  • 34 posts
  • MVP

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? :huh:

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.
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP