HelloI don't know why, but this I think going into infinite loop. I cant see anything wrong in it. Please show me where the problem is.
def myform(s): ???? import os ???? so=open(s) ???? d=os.path.dirname(s)+os.sep+'temp.txt' ???? de=open(d,'w') ???? for line in so: ???????? while len(line)>60: ????????????tem=line[60:] ????????????try: ??????????????? a,b=tem.split(' ',1) ??????????????? de.write(line[:60]+a+'\n') ??????????????? line=b ????????????except ValueError:pass ???????? de.write(line+'\n') ???? so.close() ???? de.close() ???? os.remove(s) ???? os.rename(d,s) Thank you Prasad
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor