Skip to contents

This function reads the content of a file at the specified path as text, using the specified encoding.

Usage

Path_read_text(path, encoding = c("unknown", "UTF-8", "latin1"))

Arguments

path

A character vector specifying the path to the file.

encoding

The character encoding to use for reading the file ("unknown", "UTF-8", or "latin1").

Value

A character vector containing the content of the file.

Examples

if (FALSE) {
Path_read_text("file.txt", encoding = "UTF-8")
}