file:append-text

Appends a string to a file. If the file pointed by $file does not exist, a new file will be created.

append-text($file as xs:string, $value as xs:string) ➔ empty-sequence()

Arguments

 

$file

xs:string

Path to file

 

$value

xs:string

String value to be written

Result

empty-sequence()

append-text($file as xs:string, $value as xs:string, $encoding as xs:string) ➔ empty-sequence()

Arguments

 

$file

xs:string

Path to file

 

$value

xs:string

String value to be written

 

$encoding

xs:string

Encoding used for string-binary conversion

Result

empty-sequence()

Namespace

http://expath.org/ns/file

Links to specifications

EXPath File Module