To read all the lines at once, you can use the readLines method: def lines = file.readLines() Copy · The lines is a collection ( java.util. · There is also the ...
確定! 回上一頁