file:append-text-lines
Appends a sequence of strings to a file, each followed by the system-dependent
newline character. If the file pointed by $file
does not exist, a new
file will be created.
append-text-lines($file as xs:string, $values as xs:string*) ➔ empty-sequence()
Arguments | |||
| $file | xs:string | Path to file |
| $values | xs:string* | Strings to be written |
Result | empty-sequence() |
append-text-lines($file as xs:string, $lines as xs:string*, $encoding as xs:string) ➔ empty-sequence()
Arguments | |||
| $file | xs:string | Path to file |
| $lines | xs:string* | Strings to be written |
| $encoding | xs:string | Encoding used for string-binary conversion |
Result | empty-sequence() |
Namespace
http://expath.org/ns/file
Links to specifications
Saxon availability
Available whether or not support for XPath 3.0 is enabled. Implemented since Saxon 9.5. Requires Saxon-PE or Saxon-EE.