23 std::vector<std::string> string_list;
24 std::ifstream in(filename);
27 ERR(
"Could not open file {:s}.", filename);
31 while (std::getline(in, line))
38 string_list.push_back(line);
void ERR(fmt::format_string< Args... > fmt, Args &&... args)
std::vector< std::string > readStringListFromFile(std::string const &filename)
Reads non-empty lines from a list of strings from a file into a vector.
void trim(std::string &str, char ch)