action write to file with many variables

Post your questions and help other users.

Moderator: Martin

Post Reply
holymoz
Posts: 113
Joined: 13 Sep 2013 10:27

action write to file with many variables

Post by holymoz » 23 Nov 2015 11:19

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

Mar
Posts: 49
Joined: 20 May 2015 23:24
Location: Germany

Re: action write to file with many variables

Post by Mar » 23 Nov 2015 15:28

I've tried it and it seems to work.
Attachments
file.txt
Result
(25 Bytes) Downloaded 673 times
Screenshot_2015-11-23-16-25-51.png
Screenshot_2015-11-23-16-25-51.png (164.64 KiB) Viewed 10933 times

holymoz
Posts: 113
Joined: 13 Sep 2013 10:27

Re: action write to file with many variables

Post by holymoz » 23 Nov 2015 18:09

Doesn't work for me, texts comes always in column like there was a return key at the end of each text

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: action write to file with many variables

Post by Martin » 24 Nov 2015 14:29

Maybe the variables already contain a newline character. Does it work when you use {trim(t1)} {trim(t2)}...?

Regards,
Martin

holymoz
Posts: 113
Joined: 13 Sep 2013 10:27

Re: action write to file with many variables

Post by holymoz » 24 Nov 2015 18:09

Thanks martin, worked, trim command cleaned the text

Post Reply