Home › Forums › General › Programming › building text strings › Reply To: building text strings
May 28, 2017 at 9:14 am
#72213
another suggestion from that page:
dumpoutput = function()
local file = io.write([path to file dump here], "w+")
for i, line in ipairs ([console output function]) do
file:write("\n"..line);
end
end
but i don’t know if that is valid for Ctrlr, and i don’t know
what ‘w+’ is.
he also says this:
“Note that the console output function has to store the output of the console in a table. To clear the console at the end, just do os.execute( "cls" )
.”
edit: ah, ‘w+’ >
https://www.tutorialspoint.com/lua/lua_file_io.htm
we-eee-ee, frying my brain early in the morning..