hi,
i want to have how to write lua script to collect data in array an save it on csv file with time and date file.
i want to have how to write lua script to collect data in array an save it on csv file with time and date file.
Code:
os.execute('mkdir -p /home/ftp/Rapport_SatCl/Jour')
---------------writing to file--------------------------------
local pile = io.open('/home/ftp/Rapport_SatCl/Jour/Rapport_CuSt_Jour_'..os.date('%d%B%Y')..'.csv',"a")
pile:write('\n')
for i =0 ,4 do
pile.write(arr_for_Session[i])
pile.write(';')
end
for j =0,5 do
pile:write(arr_avis [j])
pile:write(';')
end
for k=0,7 do
pile:write(arr_avis[k])
pile:write(';')
end
pile:write(text)
pile:write('\n')