|ios::ate||Write all output to the end of file (even if file position pointer is moved with seekp)|
Open a file for output and move to the end of the existing data (normally used to append data to a file, but data can be written anywhere in the file
The original file (if it exists) will not be truncated
Open a file for output (default for ofstream objects)
Discard the file's contents if it exists (this is also the default action for ios::out, if ios::ate, ios::app, or ios::in are not specified)
Opens the file in binary mode (the default is text mode)
Open fails if the file does not exist
Open files if the file already exists.
- When a file is opened, it must be specified how it is to be opened.
- This means whether to create it from new or overwrite it and whether it's text or binary, read or write and if the content is to be appended to it.
- This is done using one or more file mode specifiers
cout<<”File copied successfully..!!”;