Text file
[Desktop Automation]
The text file object represents a text file.
Properties
Property | Read/write | Type | Description |
---|---|---|---|
linecount | read-only | Number | Returns the number of lines |
Methods
Name | Syntax | Description |
---|---|---|
clear | Txtfile:clear(); | Empties the textfile object |
getline | resultline = txtfile:getline(linenumber:number); | Returns textline at linenumber |
loadfromfile | Result = txtfile:loadfromfile(filename:string); | Loads text file from disk, returns true when successful |
savetofile | Result = txtfile:savetofile(filename:string); | Writes textfile; returns true when successful |
setline | Result = txtfile:setline(linenumber:number; text:string); | Writes text at line number of linenumber ; returns true when successful |
writeline | txtfile:writeline(text:string); | Appends text to text file |