lua-users home
lua-l archive

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


> With vanilla Lua I can do
> 
> 	local f = io.popen('cat /proc/cpuinfo') -- runs command
> 	local l = f:read("*a") -- read output of command

Why io.popen+cat when you can read the file directly with io.open?