Class TextFile
#include <TextFile.h >
Class to manage a text file as a whole.
const string& filename |
Default value: "" |
FILE* f |
const string& filename |
const string& filename |
Default value: "" |
FILE* f |
const string& command |
const string& filename |
Default value: "" |
FILE* f |
unsigned int line_no |
Default value: 0 |
0 for current line
unsigned int line_no |
Default value: 0 |
0 for current line
unsigned int line_no |
Default value: 0 |
0 length or all whitespace
unsigned int line_no |
Default value: 0 |
line starts with "#", possibly whitespace before it
int token_no |
Default value: 0 |
unsigned int line_no |
Default value: 0 |
const string& separator |
Default value: "" |
unsigned int line_no |
Default value: 0 |
parse line into tokens
const string& newLine |
|
unsigned int line_no |
Default value: 0 |
0 for current line
unsigned int line_no |
Default value: 0 |
const string& newline |
|
unsigned int line_no |
Default value: 0 |
add before identified line
const string& text |
|
unsigned int line_no |
Default value: 0 |
add multiple lines at once
const vector <string >& text |
|
unsigned int line_no |
Default value: 0 |
add multiple lines at once
const string& newLine |
const string& text |
|
bool fromTop |
Default value: false |
const string& pattern |
unsigned int line_no |
|
unsigned int line_pos |
Default value: 0 |
unsigned int line_pos |
bool reverse |
Default value: false |
bool reverse |
Default value: false |
int c |
inserted before current position
const string& line |
unsigned int line_no |
Default value: 0 |
unsigned int line_no |
Default value: 0 |
unsigned int line_pos |
Default value: 0 |
unsigned int line_pos |
Default value: 0 |
unsigned int line_no |
|
unsigned int line_pos |
unsigned int line_no |
Default value: 0 |
unsigned int line_pos |
Default value: 0 |
on same line
const string& lineSeparator |
Default value: "\n" |
const string& text |
string filename |
|
vector <string > line |
|
unsigned int line_no |
starting value is 1 (not 0) |
unsigned int line_pos |
starting value is 1 (not 0) |
string pattern |
|
bool changed |
Flag: true if data was changed and needs to be saved |