[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: [Q] print function and stdout redirection?
- From: "Daniel Collins" <dcplus@...>
- Date: Wed, 17 Oct 2007 09:09:48 +1000
> 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?