Support Forums

Full Version: Best Functions for File Input/Output?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey everyone, I'm working on a project with a friend at the moment but I feel like adding the ability the ability of inputting/outputting data into a text file.

Would ofstream/ifstream be the best choices?
I have always used fstream (ofstream/ifstream) and it works well.
(04-13-2011, 01:08 PM)rootkit Wrote: [ -> ]I have always used fstream (ofstream/ifstream) and it works well.

Thank you very much Smile
Yep, just use fstream (#include <fstream>).

It's quick and easy to use. Getting output and input from files is just like getting output and input from consoles.