lua-users home
lua-l archive

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


Peter:

On Sun, Mar 5, 2017 at 3:42 PM, Peter Aronoff <telemachus@arpinum.org> wrote:
> Petri Häkkinen <petrih3@gmail.com> wrote:
>> local file = io.open("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.