[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: write a list of variables to a file, formatted
- From: Thijs Schreijer <thijs@...>
- Date: Wed, 26 Jun 2013 18:01:03 +0000
> -----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