File f = new File("meine Datei");DataInputStream in = new DataInputStream(new FileInputSteam(f));byte[] data = new byte[(int) f.length()];in.readFully(data);in.close();String inhalt = new String(data);