danielpetisme

Untitled

Dec 5th, 2012
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. myList = [1, 2, 3, 4]
  2.  
  3. myList.each {
  4.   println it
  5. }
  6.  
  7. file = new File("file.txt")
  8.  
  9. file.eachLine {
  10.   line -> println line
  11. }
Advertisement
Add Comment
Please, Sign In to add comment