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

Method Zap.SystemUtil.ReadLine

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

Watch this video to learn how to use this method

Have a problem with playback?

Usage

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

ZAP Utility

Zap...ReadLine

True

line

UseErrorOutput

Output Parameter

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

ZAP Utility

Zap.SystemUtil.Run

java

-classpath...

true

ZAP Utility

Zap.Sys...ReadLine

output

Comment

Read line from error output

ZAP Utility

Zap.Sys...ReadLine

True

errorOutput

Contact Us

Tower Place 100

3340 Peachtree Rd NE #1800 

Atlanta, GA 30326 USA

(404) 814-5227