file - Collection Data in Lua -


i relatively new writing lua, should relatively simple solution.

i doing analysis of data printed. want able save data printed on file, perhaps notepad, instead of printing value store on file. example:

if variableone == nil , variabletwo ~= nil , variablethree == true     if variabletime == nil         variabletime = gettime()     end     else if variabletime ~= nil         print("variable values have been met "..gettime() - variabletime)         variabletime = nil     end end 

i want collect timer in fashion such list may use in excel:

34.2 43.3 12.2 45.7 ... 

if want write data file, open file , write data:

local f = assert(io.open('output.txt', 'w')) f:write(tostring(gettime() - variabletime) .. '\n') -- write more data f:close() 

for more information, read pil: i/o library.


Comments

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Magento/PHP - Get phones on all members in a customer group -

session - Logging Out Using PHP -