public class CopyFile
extends java.lang.Object
ZFile
Constructor and Description |
---|
CopyFile() |
Modifier and Type | Method and Description |
---|---|
static void |
copy(java.lang.String source,
java.lang.String destination)
Copies a non-VSAM file as source to the other non-VSAM file as destination.
|
static void |
main(java.lang.String[] args)
The main method accepts two file names as the only arguments and calls
copy(String, String) to copy records from the source file to the destination file. |
public static void main(java.lang.String[] args)
copy(String, String)
to copy records from the source file to the destination file.args
- The names of the files to read from and write topublic static void copy(java.lang.String source, java.lang.String destination)
source
- The name of the file to read fromdestination
- The name of the file to create and copy to