package pk;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintStream;
public class Test {
public static void main(String[] args) {
File fileIn = new File("./src/pk/Test.java");
File fileOut = new File("./src/pk/Test.txt");
InputStream inputStream = null;
PrintStream printStream = null;
try {
inputStream = new FileInputStream(fileIn);
printStream = new PrintStream(fileOut);
} catch (FileNotFoundException e) {
e.printStackTrace();
}
System.setIn(inputStream);
System.setOut(printStream);
int temp = 0;
try {
while ((temp = System.in.read()) != -1) {
System.out.print((char)temp);
}
} catch (IOException e) {
e.printStackTrace();
}
}
}