lua-users home
lua-l archive

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


On Fri, Feb 18, 2011 at 1:53 PM, Gilles Ganault <gilles.ganault@free.fr> wrote:
> local file = io.open ('/var/tmp/myfile.txt',w)

You need quotes around the w; w is probably nil, so it tries to open
for reading  (the default)

steve d.