[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: write a list of variables to a file, formatted
- From: Scott Morgan <blumf@...>
- Date: Wed, 26 Jun 2013 15:55:26 +0100
On 26/06/13 15:45, Daniel Barna wrote:
> Hi, I have a function which return a list of variables:
> function some_function()
> return a,b,c,d;
> end
>
> I would like to write this to a file, using a whitespace as the
> separator, something like this:
> some_file:write(some_function());
>
> How can I do this?
Quick and easy:
file:write(table.concat({some_func()}, " "))
Scott