Skip to main content

read_small_text

Function read_small_text 

Source
pub fn read_small_text(path: &Path, max_bytes: u64) -> Result<String>
Expand description

Read a small regular file without following a symlink and without blocking on FIFOs/devices. Returns an error on non-regular or oversized inputs.