fileConn<-file("output.txt") writeLines(c("Hello","World"), fileConn) close(fileConn) # [Mark] [so/q/2470248] [cc by-sa 3.0] $