lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> -----Original Message-----
> From: lua-l-bounces@lists.lua.org [mailto:lua-l-bounces@lists.lua.org] On
> Behalf Of Daniel Barna
> Sent: woensdag 26 juni 2013 17:13
> To: Lua mailing list
> Subject: Re: write a list of variables to a file, formatted
> 
> Hi,
> Thanks for the answers. Yes I meant a list of values, I don't care the
> names.
> concatenating them as suggested seems to be the best solution (print
> probably writes them separated by spaces, indeed, but I wanted to use
> file:write)
> Thanks
> D
> 

Just a remark on the proposed solutions; be careful with nil values returned, the sequences might not be valid, and it won't return anything after the nil value. If you expect nils, test thoroughly...

Thijs