fbpx

Get your 6-month No-Cost Opt-Out offer for Unlimited software automation!

Method SystemUtil.ReadLine

Reads a line of characters from the Output/Error stream and returns the data as a string

Usage

Function ZAP.SystemUtil.ReadLine(
    Boolean UseErrorOutput [Optional]
)

Parameters

UseErrorOutput (optional)

Type: Boolean

Default Value: False

Use Error Standard Output

Returns

The next line from the input stream, or null if the end of the input stream is reached

Example

VBScript

Zap.SystemUtil.Run "java", "-classpath C:HelloWorld", null, True
msgbox Zap.SystemUtil.ReadLine
'read line from error output
msgbox Zap.SystemUtil.ReadLine(True)

JavaScript

Zap.SystemUtil.Run("java", "-classpath C:HelloWorld", null, true);
alert(Zap.SystemUtil.ReadLine());
//read line from error output
alert(Zap.SystemUtil.ReadLine(true));

Documentation Categories

ZAPTEST

FARM

LOAD