Need to loop through a text file and load data into an array
Posted on 2008-06-12
I have a text file that I need to loop through and put the data into 2 seperate arrays.
For instance the data will look like this..
Mary Jones 16
How can I tell when I reach the end of the file.
This is what I have so far, I know its not much but Im still pretty new to Java.
Scanner inFile = new Scanner(new FileReader("Player.txt"));