Path::append_text
pub fn append_text(string text) -> Result<int, IoError> Import
Source: use path::{Path}; src/path.hy Appends text to the file, creating it if needed. See io::file::append_text.
Called on a Path value as value.append_text(…).
Parameters#
| Name | Type |
|---|---|
text | string |
Returns#
Result<int, IoError>
See also#
io::file::append_textPath: A file-system path, with helpers to take it apart and to use it.Path::from: Creates a path fromsas written.Path::as_str: Returns the path as a string.Path::join: Returns this path followed byother, with exactly one separator between them.Path::dirname: Returns the path without its last component.Path::basename: Returns the last component, ignoring trailing separators (""for an empty path or/).Path::extension: Returns the text after the last.of the last component, or""when there is none.