Print a file.
1 file.out.print
Nota informativa
It is recommende to use file.writer.print
instead of file.out.print
.
<file.out.print
id='id'
trim='trim'
encoding='encoding'
>
<text /> !
</file.out.print>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Aid | string | Identifier of the file. | |||
Atrim | boolean | true to omit break lines and blank spaces. | |||
Aencoding | string | Indicates the encoding of the characters written in the file, for example ISO-8859-1 or UTF-8. If not specified, the one defined in the configuration file for the server is used. |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Etext | string |
Returns | |
---|---|
Type | Description |
integer | Number of bytes printed. |
Example
Print a file.
Copy
<xsql-script name='file_out_print_sample1'> <body> <set name='m_file'> <string>c:<file.separator />source<file.separator />deister.txt</string> </set> <file.out.open id='out1' append='true'> <file name='#m_file' type='absolute' /> </file.out.open> <file.out.print id='out1' trim='true'> hello </file.out.print> <file.out.close id='out1' /> </body> </xsql-script>