cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
I/O with files
I/O with files
Jun 11, 2012 at 1:53am UTC
jPytlo
(7)
Just a quick question here. What are the advantages, if any, of using ifstream or ofstream over fstream?
Jun 11, 2012 at 2:00am UTC
Albatross
(4553)
It's a bit more unambiguous and ifstreams and ofstreams only contain the code for reading and writing (respectively) rather than code for both reading and writing.
-Albatross
Topic archived. No new replies allowed.