TextFile
- class pyopenms.TextFile
Bases:
objectCython implementation of _TextFile
Documentation is available at http://www.openms.de/current_doxygen/html/classOpenMS_1_1TextFile.html
- __init__()
Cython signature: void TextFile() This class provides some basic file handling methods for text files
Cython signature: void TextFile(TextFile &)
Cython signature: void TextFile(const String & filename, bool trim_linesalse, int first_n1)
Methods
Cython signature: void TextFile()
Cython signature: void addLine(const String line)
Cython signature: void load(const String & filename, bool trim_linesalse, int first_n1)
Cython signature: void store(const String & filename) Writes the data to a file
- addLine()
Cython signature: void addLine(const String line)
- load()
Cython signature: void load(const String & filename, bool trim_linesalse, int first_n1)
- Parameters
filename – The input file name
trim_lines – Whether or not the lines are trimmed when reading them from file
first_n – If set, only first_n lines the lines from the beginning of the file are read
skip_empty_lines – Should empty lines be skipped? If used in conjunction with trim_lines, also lines with only whitespace will be skipped. Skipped lines do not count towards the total number of read lines
- store()
Cython signature: void store(const String & filename) Writes the data to a file