AnsweredAssumed Answered

GEL Script: Append lines to a file using <file:writeFile ...

Question asked by christiane1 on Jul 26, 2013
Latest reply on Apr 15, 2015 by SanjayKoshtiDiscover
Hello all,
I'm a newbie using gel scripting and I want to do a simple thing.

Writing lines into a log file. The lines should be appended to the file but every line is overwritten when I use the following construct.

<file:writeFile commentIndicator="#" delimiter=";" fileName="${v_logFile}">


<file:line>



<file:column value="Text 1 in first line "/>

</file:line>
</file:writeFile>

... < here is scripting code including file:writes into other files (error, output etc.) > ...

<file:writeFile commentIndicator="#" delimiter=";" fileName="${v_logFile}">


<file:line>



<file:column value="Text 2 in first line "/>

</file:line>
</file:writeFile>
--------------------

In this case line 1 is overwritten by line 2.
Is there a possibility to append lines in a file ?

Thank you very much for your help
christiane

Outcomes