title: Scala: How to remove blank lines when reading text from file
body: <p>How can I ignore or remove blank lines, when reading from a text file using Scala? </p>
  
  <p>An example is shown below: As you can see, the second line is the extra line.</p>
  
  <blockquote>
    <p>I. The Period</p>
    
    <p>It was the best of times,</p>
  </blockquote>