pub fn read_capped_utf8(path: &Path, cap: u64) -> Result<String, String>Expand description
Reads at most cap bytes as UTF-8; a longer file is refused even if it grew after a size
check (the read itself is bounded).
ยงErrors
A sentence naming the file and the problem.