Skip to main content

read_text_universal

Function read_text_universal 

Source
pub fn read_text_universal(path: &str) -> Option<String>
Expand description

Path(path).read_text(encoding="utf-8") — strict UTF-8 with universal newlines (\r\n/\r\n); None on OSError/UnicodeDecodeError (callers substitute “” or a structured unreadable error).