I've seen code written like so:
ifstream fin;
fin.open("largefile.dat", ifstream::binary | ifstream::in);
Now this makes me confused, is there any difference at all between the above code and this code below using ios::binary
and ios::in
as replacement?
ifstream fin;
fin.open("largefile.dat", ios::binary | ios::in);
There's no difference. These names are inherited from the virtual base std::ios_base
from which the concrete stream classes derive.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With