Last chance! 50% off unlimited learning
Sale ends in
readLines
), but optionally only until a specfied string is found.readLines.mvb( con=stdin(), n=-1, ok=TRUE, EOF=as.character( NA))
readLines
.source.mvb
, current.source
, flatdoc
tt <- tempfile()
cat( letters[ 1:6], sep="\n", file=tt)
the.data <- readLines.mvb( tt, EOF="d")
unlink( tt)
the.data # [1] "a" "b" "c"
Run the code above in your browser using DataLab