Page 1 of 1

action write to file with many variables

Posted: 23 Nov 2015 11:19
by holymoz
hi, I want to write many variables to a file in sequence, for example the file.txt must contain the text from variables in this format:

text1 text2 text3 text4....

using the write to file action, I use the variable in this format:

{t1}[space]{t2}[space]{t3}[space]{t4}...

the texts results in multiple lines instead of sequentially, like this:

text1
text2
text3
......

instead can I get it in

text1 text2 text3 text4....? thanks

Re: action write to file with many variables

Posted: 23 Nov 2015 15:28
by Mar
I've tried it and it seems to work.

Re: action write to file with many variables

Posted: 23 Nov 2015 18:09
by holymoz
Doesn't work for me, texts comes always in column like there was a return key at the end of each text

Re: action write to file with many variables

Posted: 24 Nov 2015 14:29
by Martin
Maybe the variables already contain a newline character. Does it work when you use {trim(t1)} {trim(t2)}...?

Regards,
Martin

Re: action write to file with many variables

Posted: 24 Nov 2015 18:09
by holymoz
Thanks martin, worked, trim command cleaned the text