Posted 31 May 2012 - 09:47 AM
what is the difference between
io.read() and read() ?
delete button don't work?
io.read() and read() ?
delete button don't work?
function read( _sFormat )
if _sFormat and _sFormat ~= "*l" then
error( "Unsupported format" )
end
return _G.read()
end
There's no difference since it just calls read(), but you can't give it any parameters (just the format, and only supports one, so it's kinda usless), so you can't use a replacement char (like "*" for passwords) or an history table (when using up and down to go through the previous commands).You want to read the same line multiple times? Just save it to a variable.how to make it read in a row? so when i press enter it dont go down until last 'read' in program