|
// TODO: check file attributes before reading |
|
_filename = filename; |
|
std::ifstream ifs(filename); |
|
// read the whole file at once |
|
std::string content((std::istreambuf_iterator<char>(ifs)), (std::istreambuf_iterator<char>())); |
|
// count the number of lines |
This issue was generated by todo based on a TODO
comment in 12ad011 when #6 was merged. cc @tjysdsg.