[THIS IS AN EXPERIMENTAL FUNCTION]
stri_read_lines(fname, encoding = "auto", locale = NA,
fallback_encoding = stri_enc_get())
"auto"
for automatic detection with
stri_enc_detect2
, and NULL
or
""
for the current default encoding.stri_enc_detect2
; NULL
or ""
for default locale, NA
for checking just UTF-*
familystri_enc_get
readLines
function, with the ability to auto-detect input encodings
(or specify one manually), re-encode input without any
strange function calls or sys options change, and split the
text into lines with stri_split_lines1
(which
conforms with the Unicode guidelines for newline markers).If locale
is NA
and auto-detect of
UTF-32/16/8 fails, then fallback_encoding
is used.
stri_read_raw
;
stri_write_lines