text file display options in console
Hi,
I have a real simple console app that reads in a text file and
prints it to the console. It is longer than the console is tall
so it is diplayed starting at the bottom and the user has to scroll up
to start reading at the top of the file.
Is there any way to have it display from the first line down?
The only way I have figured out so far is to break the file into seperate files,
read those in one by one and have the user hit enter to advance to the next page.
Here is how the file is read in:
Scanner fR =new Scanner(new FileReader(usrDbChoice +".txt"));
if (usrDbChoice.equalsIgnoreCase("help")){
while (fR.hasNextLine()){
String helpFile = fR.nextLine();
System.out.println(helpFile);
}
Thanks for any help
bill

