Glad I could help.
May be worth taking a look at - http://www.javaprogrammingforums.com/java-code-snippets-tutorials/339-how-read-file-line-line-using-scanner-class.html
Type: Posts; User: JavaPF
Glad I could help.
May be worth taking a look at - http://www.javaprogrammingforums.com/java-code-snippets-tutorials/339-how-read-file-line-line-using-scanner-class.html
You could possibly do something like this. As an example, it will take in user input and print out the 10th line.
import java.util.Scanner;
public class ScannerTest {
/**
*...
Hello ice,
The problem with the Scanner is, as soon as the user presses enter, it takes that as the input.
There isn't a way to move to the next line without pressing enter.
This is assuming...