Hello
>> ???? for line in so: >> ???????? if len(line)<70:de.write(line+'\n') >> ???????? if len(line)>70: >> ???????????? da=textwrap.fill(line,width=60) >> ???????????? de.write(da+'\n') >What happens if the line is exactly 70 characters long? >I think you want an else instead of the second if.... >Alan G >Author of the Learn to Program web site True.Thanks for pointing out the folly. I might have lost bits of data. Thank you Prasad
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor