Reading console input

This is a terrible questions to have to ask, but when I create a groovy script (or any program/script) to read input.

For example,

def input =
println input

I should be able to type the input directly into the console for the script to read.
In fact I can type in the cosole and the text is green.

But, how do I tell the script to continue processing?

1 comment
Comment actions Permalink

Hi Carl,

Type the text and press <enter> after that.

Regards, Denis


Please sign in to leave a comment.