[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua Basics: file opens and the colon?
- From: Rici Lake <lua@...>
- Date: Mon, 29 Aug 2005 15:18:48 -0500
On 29-Aug-05, at 2:51 PM, William Trenker wrote:
Is the following an acceptable use of the colon with io functions?
kernelinfo = io.open("/proc/version"):read()
machinetype = io.popen("uname -m"):read()
I just want to be sure that this won't leave a file handle or related
The garbage collector will deal with it eventually, which is probably