29 std::list<UserSettings> UserSettings::storages;
32 std::ofstream output(path);
34 for (
const auto& rec : data) {
35 output << rec.first << delim << rec.second <<
"\n";
41 std::cerr<<
"Error opening output file "<< path << std::endl;
46 std::ifstream file(path);
50 std::cerr<<
"File "<< path <<
" does NOT exist yet or cannot be read." 54 while (std::getline(file, line))
56 std::stringstream ss(line);
57 std::string key, value;
58 std::getline(ss, key, delim);
59 std::getline(ss, value);