By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,639 Members | 2,340 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,639 IT Pros & Developers. It's quick & easy.

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

natie
P: 5
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
Oct 17 '10 #1
Share this Question
Share on Google+
3 Replies


JavierL
P: 17
Use this, a while loop, and inside a ofstream object combined with cin, that should do the job.
Oct 18 '10 #2

100+
P: 542
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.
Oct 21 '10 #3

P: n/a
Helpful blog, bookmarked the website with hopes to read more!
Oct 21 '10 #4

Post your reply

Sign in to post your reply or Sign up for a free account.