title: Trying to read data from file (file contains line breaks every two lines)
body: <p>First off, This is what the data file may look like </p>
  
  <blockquote>
    <p>5165168416516988798484984984984984 <br>
    9898798798798 <br> <br>
    1556516846516518498 <br>
    51688484979789798798798491</p>
  </blockquote>
  
  <p>I need to read both lines before that line break (which I can do fine), and continue reading two by two until the file ends. There is a guaranteed even number of pairings so there will not be a solitary line at the end. My problem is trying to read the file beyond the first two lines.</p>
  
  <pre><code>code
  try {
      Scanner input = new Scanner (file);
      while (input.hasNextLine()) {
          String number1 = input.nextLine();
          String number2 = input.nextLine();
  
          System.out.println("String: " + number1);
          System.out.println("String: " + number2);
  
          System.out.println(number1 + " " + number2);
  
          number1= input.nextLine();
          number2= input.nextLine();
      }
  } 
  </code></pre>
  
  <p>Is what I have done so far. It works ONLY if there are no line breaks at all, though it still shoots out an exception ("No Line Found") at the end.</p>
  
  <p>This exception occurs as soon as the first break is found in the file. How do I make it so that the entire file reads in the way I desire? (Grab the two lines, do something to them. Grab the next two lines, do something... all the way until the end)</p>