Reading a certain number of lines from a file
That implementation is very procedural.  getLines() returns an Iterator, which supports a take(n) method.

def getLinesFromFile(file:File, linesToGet:Int): List[String] = {
  val bufferedSource = Source.fromFile(file)
  try {
    bufferedSource.getLines.take(linesToGet).toList
  } finally {
    bufferedSource.close
  }
}