Closes a file which has been opened to writing.

1 file.out.close

Nota informativa

It is recommended to use file.writer.close instead of file.out.close .

<file.out.close id='id'/>
Example

Closes a file which has been opened to writing.

Copy
<xsql-script name='file_out_close_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>