This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

collect data in array an save in cv file
#1
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.

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')
Reply


Messages In This Thread
collect data in array an save in cv file - by mellotron - 27.04.2023, 08:07

Forum Jump: