public void writeToFile(def directory, def fileName, def extension, def infoList) {
new File("$directory/$fileName$extension").withWriter { out ->
infoList.each {
out.println it
}
}
}
Monday, April 2, 2012
Groovy - using a writer with FileIO
Groovy - using a writer with FileIO
Subscribe to:
Posts
(
Atom
)