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