Skip to content
Browse files

open file for writing AFTER reading it :)

  • Loading branch information...
1 parent 89565ba commit 16674ad141661ea77b5903b1cba0716bd19ea7d2 @swick committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 apps/mwiniimporter/main.cpp
View
2 apps/mwiniimporter/main.cpp
@@ -47,7 +47,6 @@ int main(int argc, char *argv[]) {
MwIniImporter importer;
importer.setVerbose(vm.count("verbose"));
- boost::iostreams::stream<boost::iostreams::file_sink> file(outputFile);
MwIniImporter::multistrmap ini = importer.loadIniFile(iniFile);
MwIniImporter::multistrmap cfg = importer.loadCfgFile(cfgFile);
@@ -59,6 +58,7 @@ int main(int argc, char *argv[]) {
}
std::cout << "write to: " << outputFile << std::endl;
+ boost::iostreams::stream<boost::iostreams::file_sink> file(outputFile);
importer.writeToFile(file, cfg);
return 0;

0 comments on commit 16674ad

Please sign in to comment.
Something went wrong with that request. Please try again.