[R] Appending strings at the beginning of a text file

Paul Smith phhs80 at gmail.com
Tue Aug 25 17:54:00 CEST 2009


Dear All,

I have a piece of text that I want to append to a text file at the
beginning of the text file.

I have thought about using cat() with the option 'append=T', but the
appending, in this case, is done at the bottom of the text file. Any
ideas?

Thanks in advance,

Paul




More information about the R-help mailing list