function zapiszlog(string)
local file = fileCreate("logs.txt")
if (file) then
fileOpen("logs.txt")
local time = getRealTime()
fileSetPos(file,fileGetSize(file))
local written = fileWrite(file,"rn",string.format("-- %02s/%02s/%04s %02s:%02sr : ",
tostring(time.monthday),
tostring(time.month + 1),
tostring(time.year + 1900),
tostring(time.hour),
tostring(time.minute)),
string,"rn")
fileFlush(file)
fileClose(file)
end
end