zap, system, util, systemutil, readtoend, output, scriptless, script-less, scripted, step, view, stepview

Method Zap.SystemUtil.ReadToEnd

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

Watch this video to learn how to use this method

Have a problem with playback?

Usage

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

ZAP Utility

Zap...ReadToEnd

True

line

UseErrorOutput

Output Parameter

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));

ZAP Utility

Zap.SystemUtil.Run

java

-classpath...

true

ZAP Utility

Zap...ReadToEnd

output

Comment

Read from error output

ZAP Utility

Zap...ReadToEnd

True

errorOutput

Contact Us

Tower Place 100

3340 Peachtree Rd NE #1800 

Atlanta, GA 30326 USA

(404) 814-5227