Scanner reader = new Scanner("File Name. extension");
while (reader.hasNext())
{
}
Try that
It should keep reading till it runs out of lines.
Type: Posts; User: javapenguin
Scanner reader = new Scanner("File Name. extension");
while (reader.hasNext())
{
}
Try that
It should keep reading till it runs out of lines.