Difference between revisions of "ReadFromLog"
Jump to navigation
Jump to search
imported>Shademe (Updated with the newer details) |
imported>Shademe (→Notes: Addendum) |
||
Line 11: | Line 11: | ||
* When attempting to read from a non-existent log, the array will only have a single element (excluding the first key) - The string "''Log file not found''". | * When attempting to read from a non-existent log, the array will only have a single element (excluding the first key) - The string "''Log file not found''". | ||
* To read from the default log, pass the string "'''*.*'''" as the argument. | * To read from the default log, pass the string "'''*.*'''" as the argument. | ||
* The last element of the array will be removed if it's an empty line. | |||
==See also== | ==See also== |
Latest revision as of 17:00, 19 September 2010
A command for ConScribe.
Syntax:
(logContents:array) ReadFromLog formatString:string var1 var2 ... var20
Reads from the log and returns an array populated with its contents.
Notes[edit | edit source]
- The first key, ResultArray[0], will always contain the full path of the log being read from.
- When attempting to read from a non-existent log, the array will only have a single element (excluding the first key) - The string "Log file not found".
- To read from the default log, pass the string "*.*" as the argument.
- The last element of the array will be removed if it's an empty line.
See also[edit | edit source]