Print a file.
1 file.writer.print
<file.writer.print
id='id'
trim='trim'
>
<text /> !
</file.writer.print>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Aid | string | Identifier of the file. | |||
Atrim | boolean | true to omit break lines and blank spaces. |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Etext | string |
Returns | |
---|---|
Type | Description |
Integer | Number of bytes printed. |
Example
Print to a file.
Copy
<xsql-script name='file_writer_print_sample1'> <body> <set name='m_file'> <string>c:<file.separator />source<file.separator />deister.txt</string> </set> <file.writer.open id='out1' append='true'> <file name='#m_file' type='absolute' /> </file.writer.open> <file.writer.print id='out1' trim='true'> hello </file.writer.print> <file.writer.close id='out1' /> </body> </xsql-script>