File f = new File("/tmp/file"); if(f.canRead()){ FileInputStream fin = new FileInputStream(f); int bread = fin.read(new byte[100], 0, 100); ... }