The aqTextFile object contains the following methods:
Method List
Name | Description |
---|---|
Close |
Closes a text file saving the changes (if any). |
FileLength |
Returns the total number of characters in a text file. |
IsEndOfFile |
Specifies whether the cursor is at the end of the file. |
IsEndOfLine |
Specifies whether the cursor is at the end of a line. |
LineLength |
Returns the number of characters in the specified line. |
ReadAll |
Reads the whole content of a file to a single string. |
ReadLine |
Reads a single line of text from a file. |
ReadString |
Reads the specified number of characters from a file. |
ReadToSymbol |
Reads the file up to the specified character. |
SetPosition |
Moves the cursor position to the specified line and column. |
Skip |
Skips the specified number of characters. |
SkipLine |
Skips the specified number of lines. |
SkipSpaces |
Moves the cursor position to the nearest non-space character. |
Write |
Writes a value to a text file. |
WriteBlankLines |
Inserts the specified number of blank lines to a file. |
WriteLine |
Writes the specified value followed by a line break to a text file. |