Can anyone tell me what is the purpose of a mode argument in the open function?
Can anyone tell me what is the purpose of a mode argument in the open function?
The mode determines how the file is opened, if you only want to add text to the end of a file then you use a different mode than you would if you wanted to open a file to read/write in binary.
http://www.cplusplus.com/ref/iostream/fstream/
-Prelude
My best code is written with the delete key.