0
Is there modes in cpp as in c (r w a)?
3 odpowiedzi
+ 1
I think the mod is implicit in type of file. When you choose ofstream you mean that you choose w-mod and if you define ifstream you choose r-mod
+ 1
Check this out: http://www.cplusplus.com/reference/fstream/fstream/open/
0
second parameter of open () gives multiple modes. ios::in, ios::out etc.