Write on a file.
1 file.out.write
<file.out.write
id='id'
encoding='encoding'
/>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Aid | string | Identifier of the file. | |||
Aencoding | string | Indicates the encoding of the string og characters to process, for example ISO-8859-1 or UTF-8. If not specified, the one defined in the configuration file for the server is used. |
Returns | |
---|---|
Type | Description |
Integer | Number of bytes written. |
Example
Write on a file.
Copy
<xsql-script name='file_out_write_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'> hello </file.out.println> <file.out.close id='out1' /> </body> </xsql-script>