[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: How to get file size?
- From: Jeff Pohlmeyer <yetanothergeek@...>
- Date: Tue, 19 Apr 2011 04:26:46 -0500
On Tue, Apr 19, 2011 at 4:17 AM, Gilles Ganault wrote:
> I tried the sample at www.lua.org/pil/21.3.html but it fails with
> the following error: "attempt to call method 'seek' (a nil value)"
It works for me.
Note that you need to pass a file opened with io.open("your filename")
to the function. My guess is you are trying to give it a string.