Hi there,
Try this:
your.file=read.table(textConnection("
"),header=FALSE)
paste(your.file$V1,"\n",collapse="",sep="")
[1] "\n\n\n\n"
HTH,
Jorge
On Tue, Jun 17, 2008 at 1:01 PM, ppatel3026 <[EMAIL PROTECTED]>
wrote:
>
> How do you read in a whole file while preserving end of line "\n"
> c
How do you read in a whole file while preserving end of line "\n" characters?
Basically, read in a whole file as one string.
Ex:
After this file is read into a variable, it should really look like
"\n\n\n\n"
--
View this message in context:
http://www.nabble.com/Scan-document-including-
2 matches
Mail list logo