content
Converts the contents of a stream in the specified encoding to a string.
Signature
content(stream:stream, encoding:string="UTF-8") -> string |
Parameters
Name | Type | Description |
---|---|---|
stream | stream | Specifies the stream source. |
encoding | string | Specifies the encoding to use. The default encoding is 'UTF-8'. |
Examples
See the following example: