Scanner reader = new Scanner("File Name. extension");

while (reader.hasNext())
{

}

Try that

It should keep reading till it runs out of lines.