IOUtils

object IOUtils
class Object
trait Matchable
class Any

Value members

Concrete methods

def readLinesInFile(path: Path): Seq[String]

Reads a file at the given path and:

Reads a file at the given path and:

  • skips BOM if present
  • removes unpaired surrogates
  • uses UTF-8 encoding (replacing malformed and unmappable characters)
Value Params
path

the file path

Returns

a Seq with all lines in the given file as Strings