ReadFromLog

From the Oblivion ConstructionSet Wiki
Revision as of 17:00, 19 September 2010 by imported>Shademe (→‎Notes: Addendum)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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]

RegisterLog
UnregisterLog