How implement a log file in append mode?

Dear ABB Forum,
Please, how can i open a file in append mode, in order to log my application messages?
Now i’m using the console component to collect these messages, but i’d like to have a persistent file on the controller directory instead a volatile one…
Thank You all

Are you using the Rapid commands to write to a text file?