Program not Loading Text file.
I have a Text file in my Doc. but dont know how to link it to the Program..package fileinput; import java.io.*; /** * * @autho */ public class Main { public Main () { } /** * @param args the command line arguments */ public static void main(String[] args) { try { FileInputStream fstream = new FileInputStream("data.txt"); DataInputStream in = new DataInputStream(fstream); BufferedReader br = new BufferedReader(new InputStreamReader(in)); String strLine; while((strLine = br.readline()) != null) { System.out.println(strLine); } in.close(); } catch(Exception e) { System.err.println("Error:" + e.getMessage() ); } } }
while((strLine = br.readline()) != null)
its telling me Cant find Symbol. Symbol ReadLine() location class java.io.BufferedReader
ANY HELP?