read_txt | R Documentation |
This function reads a text file and returns a character vector containing the lines in the text file.
read_txt(file, file_encoding = "UTF-8", line_glue = NA, ...)
file |
Name of the input file. |
file_encoding |
Encoding of the input file. |
line_glue |
A character vector or |
... |
Additional arguments (not implemented). |
A character vector.
write_txt()
Other reading functions:
read_assoc()
,
read_conc()
,
read_fnames()
,
read_freqlist()
,
read_tokens()
,
read_types()
x <- "This is a small text." # write the text to a text file write_txt(x, "example-text-file.txt") # read a text from file y <- read_txt("example-text-file.txt") y
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.