Changes

Jump to navigation Jump to search
1,783 bytes added ,  02:23, 14 June 2012
|-
| width='90' | '''Signatures'''
|{{Func|file:write-binary|$path as xs:string, $items value as basex:binary*|empty-sequence()}}<br />
|-
| '''Summary'''
|Writes a sequence of binary items item (xs:base64Binary, xs:hexBinary) to the specified file. If the file already exists, it will be overwritten.<br />
|-
| '''Errors'''
|-
| width='90' | '''Signatures'''
|{{Func|file:write-text|$path as xs:string, $items value as xs:string*|empty-sequence()}}<br />{{Func|file:write-text|$path as xs:string, $items value as xs:string*, $encoding as xs:string|empty-sequence()}}<br />
|-
| '''Summary'''
|Writes a string to the specified file. If the file already exists, it will be overwritten.<br />The optional parameter {{Code|$encoding}} defines the output encoding (default: UTF-8).<br />|-| '''Errors'''|{{Error|FILE0003|#Errors}} the parent of specified path is no directory.<br />{{Error|FILE0004|#Errors}} the specified path is a directory.<br />{{Error|FILE0005|#Errors}} the specified encoding is not supported, or unknown.<br />{{Error|FILE9999|#Errors}} the operation fails for some other reason.<br />|} ==file:write-text-lines== {{Mark|Added with Version 7.3:}} {||-| width='90' | '''Signatures'''|{{Func|file:write-text-lines|$path as xs:string, $values as xs:string*|empty-sequence()}}<br />{{Func|file:write-text-lines|$path as xs:string, $values as xs:string*, $encoding as xs:string|empty-sequence()}}<br />|-| '''Summary'''|Writes a sequence of string items strings to the specified file, each followed by the system specific newline character. If the file already exists, it will be overwritten.<br />The optional parameter {{Code|$encoding}} defines the output encoding (default: UTF-8).<br />
|-
| '''Errors'''
|-
| width='90' | '''Signatures'''
|{{Func|file:append-binary|$path as xs:string, $items value as basex:binary*|empty-sequence()}}<br />
|-
| '''Summary'''
|Appends a sequence of binary items item (xs:base64Binary, xs:hexBinary) to the specified file. If the file does not exists, a new one is created.<br />
|-
| '''Errors'''
|-
| width='90' | '''Signatures'''
|{{Func|file:append-text|$path as xs:string, $items value as xs:string*|empty-sequence()}}<br />{{Func|file:append-text|$path as xs:string, $items value as xs:string*, $encoding as xs:string|empty-sequence()}}<br />
|-
| '''Summary'''
|Appends a sequence of string {{Code|$items}} to a file specified by {{Code|$path}}. If the specified file does not exists, a new file is created.<br />The optional parameter {{Code|$encoding}} defines the output encoding (default: UTF-8).<br />
|-
| '''Errors'''
|{{Error|FILE0003|#Errors}} the parent of specified path is no directory.<br />{{Error|FILE0004|#Errors}} the specified path is a directory.<br />{{Error|FILE0005|#Errors}} the specified encoding is not supported, or unknown.<br />{{Error|FILE9999|#Errors}} the operation fails for some other reason.<br />
|}
 
==file:append-text-lines==
 
{{Mark|Added with Version 7.3:}}
 
{|
|-
| width='90' | '''Signatures'''
|{{Func|file:append-text-lines|$path as xs:string, $values as xs:string*|empty-sequence()}}<br />{{Func|file:append-text-lines|$path as xs:string, $values as xs:string*, $encoding as xs:string|empty-sequence()}}<br />
|-
| '''Summary'''
|Appends a sequence of strings to the specified file, each followed by the system specific newline character. If the specified file does not exists, a new file is created.<br />The optional parameter {{Code|$encoding}} defines the output encoding (default: UTF-8).<br />
|-
| '''Errors'''
|{{Error|FILE0003|#Errors}} the parent of specified path is no directory.<br />{{Error|FILE0004|#Errors}} the specified path is a directory.<br />{{Error|FILE0005|#Errors}} the specified encoding is not supported, or unknown.<br />{{Error|FILE9999|#Errors}} the operation fails for some other reason.<br />
|}
 
==file:copy==
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu