Re: [5.1.4/newbie] "attempt to index ... 'file' (a nil value)"?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: [5.1.4/newbie] "attempt to index ... 'file' (a nil value)"?
- From: steve donovan <steve.j.donovan@...>
- Date: 2011年2月18日 13:56:40 +0200
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.