title: Parsing separated text file in Scala
body: <p>When i trying parse txt file at 200k line in file i have this error:</p>
  
  <blockquote>
    <p>java.nio.charset.UnmappableCharacterException: Input length = 1</p>
  </blockquote>
  
  <p>After i got error  my program break:</p>
  
  <pre><code>val bufferedSource = io.Source.fromFile( path)
  for (line &lt;- bufferedSource.getLines.drop(1)) {
      line.split('|').toList.drop(1)
      }
  </code></pre>
  
  <p>If I understand correctly, the error is <code>in io.Source.fromFile( path)</code>.
  How i can skip bad rows ? </p>