> It seems that keeps on re-constructing the string > would be very in-efficient, so is using a table to > store individual char(as string or number). Try ropes. See http://lua-users.org/wiki/LuaRopes . --lhf