0

Difference between IOS::out and IOS::trunc.

differences between a program using iOS::out and IOS::trunc

29th Jun 2017, 4:15 PM
Serjeel Ranjan
Serjeel Ranjan - avatar
1 Answer
0
These ones are just flags to use when you open a stream, for example the file. Out flag means that you want to open the file to write in it. Trunc flag means that the file's old content will be erased when you open it. Notice please, that you can use both these flags when opening file.
30th Jun 2017, 6:12 AM
soman