File I/O 1-liners
Vec<u8>
file::get()
and file::put()
— read and write Vec<u8>
with one function call.
extern crate file;
file::Result
is an alias for std::io::Result
. You can use Result<(), Box<std::error::Error>>
in places where you don't want to expose the error type.
String
file::get_text()
and file::put_text()
— read and write String
with one function call.
extern crate file;