From b864d95f417d3b27608eebf4eb75a5e7f3d1ccbc Mon Sep 17 00:00:00 2001 From: erius0 <63460770+erius0@users.noreply.github.com> Date: Fri, 8 Jan 2021 03:35:28 +0300 Subject: [PATCH] Update linkedGet.lua --- linkedGet.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/linkedGet.lua b/linkedGet.lua index 87a9e3b..eaddd86 100644 --- a/linkedGet.lua +++ b/linkedGet.lua @@ -18,7 +18,10 @@ function os.dateRL(format) end while true do local _, _, _, _, _, message = event.pull("modem_message") - local date = os.dateRL("%x %X") - print("[ "..date.." ]"..message) + local log = "["..os.dateRL("%x %X").."]".." "..message + print(log) + local f = io.open("file.txt","w") + f:write("file contents") + f:close() tunnel.send("succes!") end