@Gordon you are the man! Thx for the fast reply and the awesome short snippet.
Really good idea to put content to function and execute them directly.
Do you have any hints for me, when the 1v80 will release? Or did the bugfix already exsists on GitHub?
Yes, I think it's as easy as
eval(require("fs").readFileSync())- eval should use the current scope.
Maybe a 'nicer' way of doing it is:
So then you pass in what you want as arguments, and you load the code in as a function - so it's easy to just delete that function later if you want to free the memory.
... maybe wait for 1v80 before you try writing to the SD card though - @JumJum discovered a bug in 1v73 - 1v79 that could corrupt SD card contents.