Java tutorial
import java.io.FileOutputStream; import java.io.FileReader; public class Main { public static void main(String[] args) throws Exception { FileReader fileReader = new FileReader(new FileOutputStream("c:/abc.txt").getFD()); System.out.println(fileReader.read()); fileReader.close(); } }