Reads the contents of the specified stream as text in the specified encoding.
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: