Changes

Jump to navigation Jump to search
70 bytes added ,  22:58, 12 March 2013
|-
| '''Summary'''
|Reads the binary content of the file specified by {{Code|$path}} and returns it as [[Streaming Module|streamable ]] {{Code|xs:base64Binary}}.<br />
|-
| '''Errors'''
| '''Examples'''
|
* <code><nowiki>datastream:materialize(file:read-binary("config.data"))</nowiki></code> returns a materialized representation of the streamable result.
|}
|-
| '''Summary'''
|Reads the textual contents of the file specified by {{Code|$path}} and returns it as [[Streaming Module|streamable ]] {{Code|xs:string}}.<br />The optional parameter {{Code|$encoding}} defines the encoding of the file.<br />
|-
| '''Errors'''
| '''Examples'''
|
* <code><nowiki>datastream:materialize(file:read-text("config.txt"))</nowiki></code> returns a materialized representation of the streamable result.
|}
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu