How to add new lines in text and then save it in file

Share your macros, knowledge, solutions, services, ...
Post Reply
Petr
Posts: 88
Joined: Tue Oct 18, 2016 1:12 pm

How to add new lines in text and then save it in file

Post by Petr » Fri May 26, 2017 2:52 pm

This is an example how to create a text with new lines and how to save it in a file. The example text is:
Hello,

I'm writing you concerning...
The macro that creates such text and save it to file:

Code: Select all

<varset>("text=Hello,%_vKeyReturn%","")<#>
<varset>("text=%text%%_vKeyReturn%","")<#>
<varset>("text=%text%I'm writing you concerning...","")<#>
<data_save>("%text%","c:\temp\multiline.txt","O","")
Petr

Post Reply