Search notes:

R function: readLines

readLines reads (textual) and possibly unformated data and returns a vector.
rl <- readLines('readLines.R')

for (r in seq_along(rl)) {
  print (paste("line", r, "is", rl[r]))
}
Github repository about-r, path: /functions/readLines.R

See also

Import data into R for processing
Index to (some) R functions

Index