fbpx

Method SystemUtil.ReadToEnd

Reads all characters from the current position to the end of the stream

Usage

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

Parameters

UseErrorOutput (optional)

Type: Boolean

Default Value: False

Use Error Standard Output

Returns

The rest of the stream as a string, from the current position to the end. If the current position is at the end of the stream, returns an empty string ("")

Example

VBScript

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

JavaScript

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

Documentation Categories

ZAPTEST

FARM

LOAD

Virtual Expert

ZAPTEST

ZAPTEST Logo