This is my method
public void readFile3()throws IOException { try { FileReader fr = new FileReader(Path3); BufferedReader br = new BufferedReader(fr); String s = br.readLine(); int a =1; while( a != 2) { s = br.readLine(); a ++; } Storage.add(s); br.close(); } catch(IOException e) { System.out.println(e.getMessage()); } } For some reason I am unable to read the file which only contains this " Name Intel(R) Core(TM) i5-2500 CPU @ 3.30GHz "
When i debug the code the String s is being returned as "\ufffd\ufffdN a m e" and i have no clue as to where those extra characters are coming from.. This is preventing me from properly reading the file.