Need a little parse help

Scott David Daniels Scott.Daniels at Acm.Org
Tue May 10 19:32:21 EDT 2005


Alex Nordhus wrote:
...
>     for ln in inputfile.readlines():
>         words = string.split(ln)
>         if len(words) >= 2:
> #	    print (words[1])
Try:
             print >>outputfile, words[1]

--Scott David Daniels
Scott.Daniels at Acm.Org



More information about the Python-list mailing list