Forum Discussion
ChrisAdams
3 years agoChampion Level 3
Hi,
Example from Tutorials Point...
def src=new File("c:/Temp/test.txt");
def dst = new File("c:/Temp/test1.txt");
dst << src.text
The doesn't seem to be a copy file command. Instead, read from source and redirect output to destination.
It's probably worth looking at https://www.tutorialspoint.com/groovy/groovy_file_io.htm
For a more detailed page, try http://docs.groovy-lang.org/latest/html/documentation/working-with-io.html
Related Content
- 6 months ago