Writing text files with Lua Script

Hi there.

I want to write out a text file from Aximmetry.
So far I can only find a node that *reads* text in, so I figured to use a simple script-snippet like:

--$ inTextBlock string
myString = inTextBlock
file = io.open("D:\\Aximmetry\\ChannelMapping.txt", "w")
file:write(myString)
file:close()
The script compiles withou errors, but the textfile is not created.
Am I doing something wrong, or is the io section of Lua somehow different in Axy?
Thanks for any hints. 
Eric.

   EricWest

Comments

EricWest
  -  

All right.

The name of the Node is 'Text Exporter'... d'uh!