Function latin::file::append
[−]
[src]
pub fn append<P: AsRef<Path>, C: AsRef<[u8]>>(
path: P,
contents: C
) -> IoResult<()>
Appends some contents to the file at path
.
If the file at path
does not exist, it will be created.
Otherwise, the file will be completely overwritten.
// append a string latin::file::append("./foo.txt", "appended content"); // append bytes latin::file::append("./foo.txt", &[10u8, 5u8]);