File input/output: Difference between revisions
Content deleted Content added
No edit summary |
No edit summary |
||
Line 453: | Line 453: | ||
Using File |
Using File |
||
new File('output.txt').write(new File('input.txt').text) |
new File('output.txt').write(new File('input.txt').text) |
||
Using a writer |
|||
⚫ | |||
⚫ | |||
⚫ | |||
Using Ant |
Using Ant |
||
new AntBuilder().copy(file:'input.txt', toFile:'output.txt', overwrite:true) |
|||
Buffered |
|||
⚫ | |||
⚫ | |||
⚫ | |||
==[[Haskell]]== |
==[[Haskell]]== |