add "rewind()" member function to Text and Potential file reader classes

This commit is contained in:
Axel Kohlmeyer
2022-03-23 14:44:50 -04:00
parent 67329b6fff
commit 61f28aea36
4 changed files with 16 additions and 0 deletions

View File

@ -82,6 +82,13 @@ TextFileReader::~TextFileReader()
if (closefp) fclose(fp);
}
/** Reset file to the beginning */
void TextFileReader::rewind()
{
::rewind(fp);
}
/** Read the next line and ignore it */
void TextFileReader::skip_line()