Closes a file which has been opened to writing.
1 file.writer.close
<file.writer.close id='id'/>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Aid | string | Identifier of the file. |
Returns | |
---|---|
Type | Description |
null |
Example
Closes a file which has been opened to writing.
Copy
<xsql-script name='file_writer_close_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.println id='out1'> hello </file.writer.println> <file.writer.close id='out1' /> </body> </xsql-script>