Java tutorial
import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.InputStream; public class Main { public static void main(String[] args) { InputStream fileInputStream; try { fileInputStream = new FileInputStream("c:/a.txy"); Runtime runTime = Runtime.getRuntime(); runTime.getLocalizedInputStream(fileInputStream); } catch (FileNotFoundException e) { e.printStackTrace(); } } }