import java.io.*; class Program2 { public static void main(String args[]) throws IOException { FileReader olvaso = new FileReader("adat.txt"); StringBuilder strb = new StringBuilder(); char ch; while(olvaso.ready()) { ch = (char)olvaso.read(); strb.append(ch); } olvaso.close(); System.out.println(strb); } }