Read to string
(path: &str)
| 371 | |
| 372 | // Read to string |
| 373 | pub fn read_to_str(path: &str) -> Result<String, ()> |
| 374 | { |
| 375 | let buffer = read_to_bytes(path)?; |
| 376 | Ok(String::from_utf8_lossy(&buffer).to_string()) |
| 377 | } |
| 378 | |
| 379 | |
| 380 | // Reopen |
no test coverage detected