18 ifstream input(filename);
21 throw invalid_argument(
string(
"Can't open file \"") + filename +
"\"");
26 while (getline(input, line))
37 ofstream output(filename);
38 if (!output.is_open())
40 throw invalid_argument(
string(
"Can't open file \"") + filename +
"\"");
void save(const std::string &filename, bool force=false)
TODO implement the force parameter.
std::vector< CoNLLULine > _lines
void load(const std::string &filename)