Changes

Jump to navigation Jump to search
1,981 bytes added ,  07:25, 5 June 2012
no edit summary
|-
| '''Errors'''
|{{Error|FILE0003|#Errors}} the parent of specified path is no directory.<br />{{Error|FILE0004|#Errors}} the specified path is a directory.<br />{{Error|FILE9999|#Errors}} the operation fails for some other reason.<br />
|}
|-
| '''Summary'''
|Writes a sequence of {{Code|xs:basex64Binary}} Base64 {{Code|$items}} to a file specified by {{Code|$path}}. If the specified file already exists, it will be overwritten.<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|FILE9999|#Errors}} the operation fails for some other reason.<br />|} ==file:write-text=={||-| width='90' | '''Signatures'''|{{Func|file:write-text|$path as xs:string, $items as xs:string*|empty-sequence()}}<br />{{Func|file:write-text|$path as xs:string, $items as xs:string*, $encoding as xs:string|empty-sequence()}}<br />|-| '''Summary'''|Writes a sequence of string {{Code|$items}} to a file specified by {{Code|$path}}. If the specified 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 />
|}
|-
| '''Errors'''
|{{Error|FILE0003|#Errors}} the parent of specified path is no directory.<br />{{Error|FILE0004|#Errors}} the specified path is a directory.<br />{{Error|FILE9999|#Errors}} the operation fails for some other reason.<br />
|}
|-
| width='90' | '''Signatures'''
|{{Func|file:append-binary|$path as xs:string, $items as basex:binary*|empty-sequence()}}<br />|-| '''Summary'''|Appends a sequence of binary {{Code|$items}} to a file specified by {{Code|$path}}. If the specified file does not exists, a new file is created.<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|FILE9999|#Errors}} the operation fails for some other reason.<br />|} ==file:append-text=={||-| width='90' | '''Signatures'''|{{Func|file:append-text|$path as xs:string, $items as xs:string*|empty-sequence()}}<br />{{Func|file:append-text|$path as xs:base64Binarystring, $items as xs:string*, $encoding as xs:string|empty-sequence()}}<br />
|-
| '''Summary'''
|Appends a sequence of {{Code|xs:basex64Binary}} 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 />
|}
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu