Skip to main content

writer

Function writer 

Source
pub fn writer(path: impl AsRef<Path>) -> Result<File>
Available on crate feature fs only.
Expand description

Make a non-buffered writer to the file

Note that using a writer only really makes a difference if the content is large (i.e. does not fit in memory)

If you are making small writes, use cu::fs::buf_writer

Make sure to manually flush to capture errors while flushing