Sunday, May 10, 2009

In C++ what is <fstream> good for?

I don't see why %26lt;fstream%26gt; would be used at all. It wastes a lot of space.

In C++ what is %26lt;fstream%26gt; good for?
There are 3 File I/O classes in C++ which are used for File Read/Write operations. They are





* ifstream - Can be used for File read/input operations


* ofstream - Can be used for File write/output operations


* fstream - Can be used for both read/write c++ file I/O operations


No comments:

Post a Comment