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 = System.in.readLines()
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?
Please sign in to leave a comment.
Hi Carl,
Type the text and press <enter> after that.
Regards, Denis