Try something like this:




JTextArea area = new JTextArea(30,30);

String str = "";
Scanner reader = new Scanner("File.txt");