String input try BufferedReader in new BufferedReader new FileReader j

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
String input;
try {
BufferedReader in = new BufferedReader(new FileReader(jTextField1.getText()));
} catch (FileNotFoundException e) {}
try {
while ((input = in.readLine()) != null) {
System.out.println(input);
}
} catch (IOException e) {}
in.close();