|-
| '''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.
|}