Boltek Lightning/2000 User Manual

Page 268

Advertising
background image

L I G H T N I N G / 2 0 0 0

268

268

268

268

will appear on the same line. The expression may be
either a quoted string, a mathematical expression
(including keywords), or a combination. Multiple
elements in the same #Write command may be
concatenated with plus signs, or they may be
separated by commas.

Examples of #Write commands:

#Write( 'A thunderstorm is nearby' )

#Write(

‘The

record

was

set

on

+

@RecordTotalStrokesDate )

#Write( ‘a’ + ‘b’ + ‘c’ + 1 ) ; writes “abc1”

#Write( ‘a’, ‘b’, ‘c’, 1 ) ; also writes “abc1”

#WriteFile( ‘filename’, expression )

#WriteFile( ‘filename’, expression,
expression, …, expression )

Writes a line of text to a file, erasing the previous
contents (if any) of the file. The name of the file is
specified in the ‘filename’ parameter. The expression
may be either a quoted string, a mathematical
expression (including keywords), or a combination.
Multiple elements in the same #WriteFile command
may be concatenated with plus signs, or they may be
separated by commas. Examples of #WriteFile
commands:

#WriteFile( @L2Kfolder + ‘ftplog.txt’, ‘FTP started at
‘ + @LocalTime )

#WriteFile( ‘C:\test.txt’, ‘just testing’ )

Any errors encountered during the execution of the
#WriteFile command will be written to the Custom
Summary window.

Advertising