CAS 6


New scripting method: TextFile.AddLines

Scripting TextFile.AddLines method accepts a StringList instance and writes multiple lines to the file. Result is a Numeric object with written line count.

Example

T←TextFile.New 'c:\temp\log.txt'
sl ← StringList.New ''
sl.AddString 'line 1'
sl.AddString 'line 2'
ct ← T.AddLines sl
ct.Show''