Using a stream character, read a file and convert the entry bytes to the indicated encoding. Returns a String. If encoding is not indicated, it is used the encoding which have the server defined in the file server.xml.
|Aencoding||string||Indicates the encoding of the string which is generated with the result of the file content, for example ISO-8859 or UTF-8. If not specified, the one defined in the configuration file is used for the server.|
|String||String of the file content.|
Get a string with the file content and emits the result by the console. Encoding is indicated so the generated string had characters of tje indicated encoding.
<xsql-script name='file_chars_read_sample1'> <body> <println> <file.chars.read encoding="UTF-8"><file name='test.xml' type='absolute' /></file.chars.read> </println> </body> </xsql-script>