ProfileManager: trunc flag to file overwrite
This commit is contained in:
parent
bca9407f70
commit
75a14f2250
1 changed files with 1 additions and 1 deletions
|
|
@ -52,7 +52,7 @@ bool ProfileManager::SaveProfile(std::string profile_name, bool sizes)
|
||||||
/*---------------------------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| Open an output file in binary mode |
|
| Open an output file in binary mode |
|
||||||
\*---------------------------------------------------------*/
|
\*---------------------------------------------------------*/
|
||||||
std::ofstream controller_file(configuration_directory + filename, std::ios::out | std::ios::binary);
|
std::ofstream controller_file(configuration_directory + filename, std::ios::out | std::ios::binary | std::ios::trunc);
|
||||||
|
|
||||||
/*---------------------------------------------------------*\
|
/*---------------------------------------------------------*\
|
||||||
| Write header |
|
| Write header |
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue