lua-users home
lua-l archive

Re: [5.1.4/newbie] "attempt to index ... 'file' (a nil value)"?

[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.

AltStyle によって変換されたページ (->オリジナル) /