Read Text Lines from a Text File
Reads a text file in ins entirety, re-encodes it, and splits it into text lines.
stri_read_lines(con, encoding = NULL, fname = con, fallback_encoding = NULL)
name of the output file or a connection object (opened in the binary mode)
single string; input encoding;
''for the current default encoding.
deprecated alias of
deprecated argument, no longer used
This aims to be a substitute for the
with the ability to re-encode the input file in a much more robust way,
and split the text into lines with
(which conforms with the Unicode guidelines for newline markers).
Because of the way this function is currently implemented, maximal file size cannot exceed ~0.67 GB.
Returns a character vector, each text line is a separate string. The output is always marked as UTF-8.