elm on 05/26/11
Last Edited at 05/26/11 06:57pm
// copy with substitution new File('new.txt').withWriter { file -> new File('orig.txt').eachLine { line -> file.writeLine( line.replace('code', 'joy') ) }}
Report this snippet Tweet
Comment:
You need to login to post a comment.