Scanner m = new Scanner(new File("C:\\Map.txt));
System.out.println(m.next());
say the Map.txt has the line fgdfgdfgfgfdg in it.
when i try to use it, it prints the whole line instead of one token/letter at a time. How can I read only 1 letter?
P.S - I'm aware the file has to be in a try-catch block, I ommitted that here and I also tried using FileReader instead of File, same thing happens.