diff --git a/src/project.cpp b/src/project.cpp index 03f3f73..8845e82 100644 --- a/src/project.cpp +++ b/src/project.cpp @@ -35,12 +35,11 @@ void ProjectList::remove_project(int id){ } void ProjectList::save(std::string file_name){ - std::ofstream of(file_name, std::ios::out | std::ios::binary); + std::ofstream of(file_name, std::ios::binary); if (!of){ std::cout << "Could not open file " << file_name << " for writing!" << std::endl; exit(1); } - std::cout << num_projects << " " << num_projects << std::endl; of.write((char*) &num_projects, sizeof(int)); of.write((char*) &active_project, sizeof(int)); for (int i=0; i