diff --git a/src/main.cpp b/src/main.cpp index 969cf49..3d08d38 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -157,7 +157,7 @@ class MainLayer : public omc::layer { std::vector file_data = archive_array.query_file(filename); - std::ofstream output_file { full_path, std::ios::trunc }; + std::ofstream output_file { full_path, std::ios::binary }; output_file.write(reinterpret_cast(file_data.data()), file_data.size()); std::cout << "File was exported to: " << full_path << "\n"; @@ -278,4 +278,4 @@ int main() { app->push_layer(std::make_shared(app.get())); app->run(); -} \ No newline at end of file +}