lines

object lines extends ReadablePath => IndexedSeq[String]

Reads the given os.Path or other os.Source as a string and splits it into lines; defaults to reading as UTF-8, which you can override by specifying a charSet.

trait ReadablePath => IndexedSeq[String]
class Object
trait Matchable
class Any
lines.type

Type members

Classlikes

object stream extends ReadablePath => Generator[String]

Identical to os.read.lines, but streams the results back to you in a os.Generator rather than accumulating them in memory. Useful if the file is large.

Identical to os.read.lines, but streams the results back to you in a os.Generator rather than accumulating them in memory. Useful if the file is large.

Value members

Concrete methods

def apply(src: ReadablePath): IndexedSeq[String]
def apply(arg: ReadablePath, charSet: Codec): IndexedSeq[String]

Inherited methods

@unspecialized
def andThen[A](g: IndexedSeq[String] => A): ReadablePath => A
Inherited from:
Function1
@unspecialized
def compose[A](g: A => ReadablePath): A => IndexedSeq[String]
Inherited from:
Function1
override def toString(): String
Definition Classes
Function1 -> Any
Inherited from:
Function1