18 lines
476 B
Lua
18 lines
476 B
Lua
|
local strdefi=getmetatable('').__index
|
||
|
getmetatable('').__index=function(str,i) if type(i) == "number" then
|
||
|
return string.sub(str,i,i)
|
||
|
else return strdefi[i] end end
|
||
|
|
||
|
for i=5050, 5057, 1 do
|
||
|
file = io.open(i..".scr", "r")
|
||
|
file_content = file:read()
|
||
|
print(file_content)
|
||
|
file:close()
|
||
|
file = io.open(i..".scr", "w")
|
||
|
for i=1, #file_content, 1 do
|
||
|
if file_content[i] ~= "-" and file_content[i] ~= "\n" then
|
||
|
file:write(file_content[i])
|
||
|
end
|
||
|
end
|
||
|
end
|