Read File as Text
read.txt(filename, folder = NA)
File path and name for the file to be read in.
Folder path to look for the file in.
Character variable containing the text in the file.
# NOT RUN {
# write a files.
path = tempfile()
cat( "some text", file = path )
# read the file.
read.txt( path )
# cleanum.
file.remove( path )
# }
Run the code above in your browser using DataLab