| Smartsite SXML |
|
|---|---|
{buffer.set(file, filesystem.combinepaths("functionaltests/readfromfile","Hallo.txt"))}
<se:if expression="filesystem.existsfile($file)">
<se:then>{buffer.get(file)} contains: {filesystem.readtext($file)}</se:then>
<se:else>File not found: {buffer.get(file)}</se:else>
</se:if>
|
|
| Example Result |
|
|---|---|
functionaltests/readfromfile/Hallo.txt contains: Hallo! |
|