What is the difference between using fstream and ofstream for file output? Does it mean that you don't have to add the ios::out flag when using fstream since it will be for both input and output?
If you know you're only going to do output should you use ofstream only?
Same for input?