about saving the input from the keyboard as a .txt file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • natie
    New Member
    • Oct 2010
    • 5

    about saving the input from the keyboard as a .txt file

    Hi. could anybody help me about how can I save the input from the keyboard as a .txt file?? I've recently started using C++ and I'm a little bit confused... Thanks
  • JavierL
    New Member
    • Apr 2010
    • 17

    #2
    Use this, a while loop, and inside a ofstream object combined with cin, that should do the job.

    Comment

    • whodgson
      Contributor
      • Jan 2007
      • 542

      #3
      yes...or just open a new page in your IDE and instead of writing a program write your text file and give it a name with a .txt extension.

      Comment

      • roclafamilia

        #4
        Helpful blog, bookmarked the website with hopes to read more!

        Comment

        Working...