/*
* Copyright (c) 1999-2002, Xiaoping Jia.
* All Rights Reserved.
*/
import java.io.*;
/**
* This program copies a text file to antoher file.
* The first argument is the input file name. The second argument is the output file name.
*/
public class CopyTextFile {
public static void main(String[] args) {
if (args.length >= 2) {
try {
BufferedReader in = new BufferedReader(
new FileReader(args[0]));
PrintWriter out = new PrintWriter(
new BufferedWriter(
new FileWriter(args[1])));
String line;
while ((line = in.readLine()) != null) {
out.println(line);
}
out.flush();
out.close();
} catch (IOException e) {}
}
}
}