Files
NodeMCU_Lua/code2file.lua
Christian Zufferey 3149e7ecc8 first commit
2018-07-22 12:43:16 +02:00

12 lines
195 B
Lua

-- écriture d'un script dans un fichier et l'exécute
-- zf180717.1517
jj = [[
print("toto")
print("tutu")
]]
file.open("toto1518.lua","w")
file.write(jj)
file.close()
dofile("toto1518.lua")