Returns all the content of the file with id identifier.
 

1 file.in.readAll

<file.in.readAll>
    <id /> !
</file.in.readAll>
Example

In the example, a file with a text and a associated stream is created and then the information is read through the open stream.

Copy
<xsql-script name='file_in_readAll_sample1'>
    <body>
        <set name='my_file'>
            <string>my_file.txt</string>
        </set>
	<file.bytes.write>
            <file name='#my_file'/>
            <string.getBytes>file's text</string.getBytes>
        </file.bytes.write>
        
        <set name = 'm_file'>
	    <file name='my_file.txt'/>
	</set>
        <set name = 'is1'>
	    <file.in.open id='in1'>
	        <m_file/>
	    </file.in.open>
	</set>
        <println>The content of the read file through the stream: </println>
        <println><file.in.readAll id='in1' /></println>
            
	<file.in.close id='in1'>
	</file.in.close>
    </body>
</xsql-script>