1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 \name{read-lines} \alias{read.lines} \title{Read from a text file line by line} \description{ Reads from a text file line by line. Wrapper to readLines() function. } \usage{ read.lines(con=stdin(), n=-1, ok=TRUE, warn=FALSE, encoding="unknown") } \arguments{ \item{con}{ a connection object or a character string. } \item{n}{ an integer, the (maximal) number of lines to read. Negative values indicate that one should read up to the end of input on the connection. } \item{ok}{ a logical, is it OK to reach the end of the connection before n > 0 lines are read? If not, an error will be generated. } \item{warn}{ a logical, warn if a text file is missing a final EOL. The default is FALSE, note different from function \code{readLines}. } \item{encoding}{ a character string, the encoding to be assumed for input strings. } } \value{ the downloaded text. Same output as readLines() function. } \references{ Diethelm Wuertz, Yohan Chalabi, and Andrew Ellis, (2010); \emph{Financial Market Data for R/Rmetrics}, Rmetrics eBook, Rmetrics Association and Finance Online, Zurich, www.rmetrics.org. } \keyword{programming}