- Create and open it: this is done with either wxTextFile::Create or wxTextFile::Open
function which opens the file (name may be specified either as the argument to
these functions or in the constructor), reads its contents in memory (in the
- Create and open it: this is done with either wxTextFile::Create or wxTextFile::Open
function which opens the file (name may be specified either as the argument to
these functions or in the constructor), reads its contents in memory (in the
- Work with the lines in the file: this may be done either with "direct
access" functions like wxTextFile::GetLineCount and wxTextFile::GetLine
(@e operator[] does exactly the same but looks more like array addressing)
- Work with the lines in the file: this may be done either with "direct
access" functions like wxTextFile::GetLineCount and wxTextFile::GetLine
(@e operator[] does exactly the same but looks more like array addressing)
Adds a line to the end of file.
*/
void AddLine(const wxString& str,
Adds a line to the end of file.
*/
void AddLine(const wxString& str,
The returned line may be modified but you shouldn't add line terminator
at the end - this will be done by wxTextFile.
*/
The returned line may be modified but you shouldn't add line terminator
at the end - this will be done by wxTextFile.
*/
Insert a line before the line number @a n.
*/
void InsertLine(const wxString& str, size_t n,
Insert a line before the line number @a n.
*/
void InsertLine(const wxString& str, size_t n,