A class implementing an input file.
Methods
Create an input file.
All lines in the specified text file will be read into a list of strings.
Parameters : | filename : str, optional
|
---|
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.
Parameters : | line : int, optional
|
---|---|
Returns : | line : str
|
Getter for lines.
Getter for n_lines.