Fairly new to programming, trouble reading and writing to a binary file. [closed]

You want to skip 1 line but this will skip two lines:

for(int i = 0; i <= 1; i++)

Also your code is unnecessarily complicated, something like this is easier to follow:

String line = br.readLine(); // read first line
br.readLine(); // skip 2nd line
while((line = br.readLine()) != null) // read the rest till the end
    Player pl = new Player(line);

Browse More Popular Posts

Leave a Comment