P
Pen Ttt
how to delete the first two characters of each row?
i want to delete the first two characters of each row in file
/home/pt/test/mtp.txt
io=open("/home/pt/test/mtp.txt","r")
io1=open("/home/pt/test/mtpback.txt","w")
while line=io.gets
ioput=line.delete("/^..../")
io1.write(ioput)
end
when i open /home/pt/test/mtpback.txt,there is not what i want,where is
wrong?
i want to delete the first two characters of each row in file
/home/pt/test/mtp.txt
io=open("/home/pt/test/mtp.txt","r")
io1=open("/home/pt/test/mtpback.txt","w")
while line=io.gets
ioput=line.delete("/^..../")
io1.write(ioput)
end
when i open /home/pt/test/mtpback.txt,there is not what i want,where is
wrong?