Return to extractPNumbers.py CVS log | Up to [Repository] / cdli / tools |
1.1 ! dwinter 1: ret = [] ! 2: f = file("/tmp/basket.atf") ! 3: for l in f.readlines(): ! 4: ! 5: if l.startswith("&P"): ! 6: ret.append(l[1:8]+"\n") ! 7: print l[1:8] ! 8: print ret ! 9: f = file("/tmp/basket.pnums","w") ! 10: f.writelines(ret)