miceno on 12/30/10
Last Edited at 12/30/10 08:21pm
new File("simple.tab").withReader{r-> line = r.readLine(); println "first line: $line" r.splitEachLine("\t"){fields-> println "fields on line: $fields" } }
URL: http://snipplr.com/developer/
Report this snippet Tweet
Comment:
You need to login to post a comment.