Copying a Text File

Scripts on this page are available here:

CopyTextFile.js

The example script CopyTextFile.js is showing how to copy a textfile to another textfile:

You need to have a text file called testfile1.txt already in your workspace folder. This file will be copied into testfile2.txt.