append_text
fn append_text(string path, string text) -> Result<int, IoError> Import
Source: use io::file::{append_text}; src/io/file.hy Appends text to the file at path, creating it if needed. Needs --allow-write.
Parameters#
| Name | Type |
|---|---|
path | string |
text | string |
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_bytes: Appendsbufto the file atpath, creating it if needed.