A class implementing an input file.
Create an input file.
All lines in the specified text file will be read into a list of strings.
- filenamestr, optional
name of the input file
- encodingstr, optional
the encoding used to read the content of the file
Getter for current_line.
Getter for filename.
Get a specific line.
If no line is given, the current line will be returned and the value of current_line will be increased by one. First line is line 1.
- lineint, optional
number of the line to get
line as string or None if line does not exist
Getter for lines.
Getter for logging.
Getter for n_lines.
Set logging of this object on or off
set logging on (True) or off (False)