lua-users home
lua-l archive

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


On Sun, Mar 5, 2017 at 3:42 PM, Peter Aronoff <> wrote:
> Petri Häkkinen <> wrote:
>> local file ="results.txt", "w")
>> io.write(file, table.concat(results, "\n"))
>> io.close(file)
> For what it’s worth, as someone who came to Lua without much OO experience,
> I do exactly this now. I find procedural (or imperative) style far clearer.

Did not you notice io.write is not necessarily the same as file.write?

Francisco Olarte.