Is there modes in cpp as in c (r w a)? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is there modes in cpp as in c (r w a)?

23rd Apr 2016, 6:11 PM
Akash Narayan Sutar
Akash Narayan Sutar - avatar
3 Answers
+ 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
26th Apr 2016, 12:00 PM
MariBelle
MariBelle - avatar
13th May 2016, 3:07 PM
James Flanders
0
second parameter of open () gives multiple modes. ios::in, ios::out etc.
14th Jun 2016, 1:08 PM
Hassan Q
Hassan Q - avatar