save text to file

 

is there a way to save text as external file? like from "find files" module?


   jozee1

 
Profile Image
Aximmetry
  -  

Hi,

There is a Text Exporter module which does what you asked.

Best Regards

 
Profile Image
jozee1
  -  

Thanks, 

how can i save different data into different rows in the text file?

 
Profile Image
Patrik@Aximmetry
  -  

Hello,

You can either use a Text Block module which works like a notepad however, you have to type in the text manually.
Then connect its out pin to a Text Exporter node. Like here:

Or you can use a Text Concat / Text Concat Multi node.
For this example im going to use Text Concat Multi but Text Concat node works the same.
In this case you need a Text Unescape node as well.
Its text property should be "\r\n" for Windows (other operating systems might use only \r or \n) and the Mode property set to C / JSON (0) like here:

The Text Unescape node's Out pin should be connected to the Separator input of the Text Concat Multi node and the text data into the Text 1, Text 2 , etc pins ike so:

Then use the Text Exporter to set the desired file name, location etc for your file then use its Export trigger to save it.

 
Profile Image
Patrik@Aximmetry
  -  

Hello,

As of 2021.3.2 release Text Concat and Text Concat Multi nodes allow escaping in the Separator property.
The Separator property should be "\r\n" for Windows (other operating systems might use only \r or \n).
Here is an example:


Best Regards,