Not a very exciting script, but I truly admire how much you can do with Groovy in just a few lines of code.
def outfile = new File("out.txt")
def infile = new File("in.txt")
outfile.withWriter { output ->
infile.eachLine { input ->
output.writeLine(input.padRight(200, " "))
}
}
No comments:
Post a Comment