Forum Discussion
ChrisAdams
4 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
- 9 months ago
- 7 years ago
Recent Discussions
- 5 days ago
- 9 days ago