Method SystemUtil.ReadLine
Reads a line of characters from the Output/Error stream and returns the data as a stringUsage
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));
Comment
Read line from error output