lua-users home
lua-l archive

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


> OK. Then, how do I redirect output from "print" to some file 
> or file handle?

local originalPrint = print
print = function(...)
	io.write(...)
	io.write("\n")
end

Or something like that?