60 549
Assignments Done
97,9%
Successfully Done
In April 2018

Answer to Question #517 in C++ for mango

Question #517
How to output data into a file in C++?
Expert's answer
The easiest way is to use objects of type ofstream for output and ifstream for input. And then send
filenames in the constructor. For example ifstream fin(“input.txt”). The syntax is exactly the same as in cin and cout. To use these types you have to include the header file fstream.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions