I am new to C++. I have simple question to ask you that what is the difference between std::fstream::X and std::ios::X open file mode in C++ ?
Where x can be in, out, ate, trunk, ate ?
Here is more example:
fs.open(filename.c_str(), std::fstream::in | std::fstream::out | std::fstream::app); vs
fs.open(filename.c_str(), std::ios::in | std::ios::out | std::ios::app); what is the difference between these two ?
Please don't answer in a complicated manner since I am beginner in C++.
iosis base class offstream