Print to a file and performance a line break.
1 file.out.println
Nota informativa
It is recommended to use file.writer.println
instead of file.out.println
.
<file.out.println
id='id'
trim='trim'
encoding='encoding'
>
<text /> !
</file.out.println>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Aid | string | Identifier of the file. | |||
Atrim | boolean | true to omit line break 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 server.xml for the server is used. |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Etext | string |
Returns | |
---|---|
Type | Description |
integer | Number of bytes printed. |
Example
Print to a file and perfom a line break.
Copy
<xsql-script name='file_out_println_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.println id='out1' trim='true'> hello </file.out.println> <file.out.close id='out1' /> </body> </xsql-script>