odd2k/Cataclysm — comment on commit 17a8405db06a8be99f474c17be4b76bd6c215da9
File:  line 0
By odd2k:

ifstream::clear() followed by ifstream::seekg(0) should be enough to allow the files to be re-read normally. Maybe there should be additional arguments to ifstream::seekg(0), or it should be replaced with ifstream::close() and another ifstream::open(). It works for me, though.