File input/output: Difference between revisions

Content added Content deleted
(add task to ARM64 assembly Raspberry Pi)
m (Make the Groovy example fulfill the task by actually using an intermediate variable)
Line 1,724: Line 1,724:


Using File
Using File
<lang groovy>new File('output.txt').write(new File('input.txt').text)</lang>
<lang groovy>content = new File('input.txt').text
new File('output.txt').write(content)</lang>


Using Ant
Using Ant