import java.io.PrintStream;
import java.io.InputStream;
import java.io.FileOutputStream;
import java.io.*;
class SysTest{
public static void main(String[] args){
OutputStream output = new FileOutputStream("E:\\java_file\\Files_io\\fileTest.txt");
PrintStream printOut = new PrintStream(output);
System.setOut(printOut);
}
}
class Test{
public static void main(String[] args) throws FileNotFoundException {
OutputStream output = new FileOutputStream("E:\\java_file\\Files_io\\fileTest.txt");
PrintStream printOut = new PrintStream(output);
System.setOut(printOut);
}
}