What is the difference between these two lines in file management in C++?
fstream fin("project.csv",fstream::in); fstream fin("project.csv",ios::in);
Refer to the image for the hierarchy of classes in C++.
Actually ios_base is the superclass which is inherited by ios class, which is inherited by istream and ostream and both of these are inherited by iostream which is later inherited by fstream, therefore ios::in
or fstream::in
are the same.