Close input stream after eating
This commit is contained in:
parent
1564e18c4a
commit
da2744e2eb
1 changed files with 1 additions and 0 deletions
|
|
@ -17,6 +17,7 @@ void Markov::eat(std::string filename) // gobble up a file
|
||||||
{
|
{
|
||||||
this->swallowLine(line);
|
this->swallowLine(line);
|
||||||
}
|
}
|
||||||
|
ifs.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue