Usage
Function ZAP.SystemUtil.ReadToEnd(
Boolean UseErrorOutput [Optional]
)
ZAP Utility
ZAP...ReadToEnd
True
line
Boolean 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
ZAP Utility
Zap...ReadToEnd
True
errorOutput

Comment
Read from error output