Skip to content
Prev 232737 / 398500 Next

Read in a all-character file and specify field separator and records separator

On Sun, Aug 29, 2010 at 9:18 PM, Yong Wang <wangyong1 at gmail.com> wrote:
Do either of these do what you want?

readLines(con = file("example.txt", open = "r"))
read.table(file = "example.txt", sep = "\n")

Both throw a warning in a little text file I made, but both read each
line into one column.

Josh