Skip to main content

read_lines

Function read_lines 

Source
pub fn read_lines(
    path: &str,
) -> Result<Lines<BufReader<Box<dyn Read + Send>>>, OneIoError>
👎Deprecated since 0.23.0:

Use read_lines_lossy for lossy text, read_to_bytes for byte-perfect whole-file reads, or get_reader for byte streaming

Expand description

Returns an iterator over lines from the provided path.