append_bytes
fn append_bytes(string path, Vec<byte> buf) -> Result<int, IoError> Import
Source: use io::file::{append_bytes}; src/io/file.hy Appends buf to the file at path, creating it if needed. Needs --allow-write.
Parameters#
| Name | Type |
|---|---|
path | string |
buf | Vec<byte> |
Returns#
Result<int, IoError>
See also#
read_bytes: Reads the whole file atpath.write_bytes: Replaces the contents of the file atpathwithbuf, creating it if needed, and returns the number of bytes written.read_text: Reads the whole file atpathas UTF-8 text.write_text: Replaces the contents of the file atpathwithtext, creating it if needed, and returns the number of bytes written.append_text: Appendstextto the file atpath, creating it if needed.