I'm trying to read in from a .txt file with a Scanner (see code). For some reason this line of code will never execute even though it can open the file and there is, in fact, data in it as such:
Name
Name
Number
Number
File playerFile = new File(fileName);
Scanner dataFile = new Scanner(playerFile);
while(dataFile.hasNextLine())
Why would datafile.hasNextLine() return false?