lua-users home
lua-l archive

Lua Basics: file opens and the colon?

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


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
resources dangling.
Thanks,
Bill

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