3 ms·
To be clear you can write let bytes = std::fs::read(“path.txt”)?; If you’re trying to actually do this in real code. The example is how you’d write this f
by steveklabnik 5y ago
To be clear you can write
let bytes = std::fs::read(“path.txt”)?;
If you’re trying to actually do this in real code. The example is how you’d write this function yourself, but if you’re just trying to Get It Done, it’s significantly easier than the example.