how to find a lable quickly?

2007-05-04 Thread wang frank
Hi, I am a new user on Python and I really love it. I have a big text file with each line like: label 3 teststart 5 endtest 100 newrun 2345 I opened the file by uu=open('test.txt','r') and then read the data as xx=uu.readlines() In xx, it contains the list of each

Re: how to find a lable quickly?

2007-05-04 Thread Josh Bloom
I haven't used it myself, but I'm pretty sure you're going to get a lot of pointers to http://pyparsing.wikispaces.com/ Also you may want to start naming your variables something more descriptive. IE testResultsFile = open('test.txt','r') testLines=testResultsFile.readlines() for line in

Re: how to find a lable quickly?

2007-05-04 Thread Larry Bates
wang frank wrote: Hi, I am a new user on Python and I really love it. I have a big text file with each line like: label 3 teststart 5 endtest 100 newrun 2345 I opened the file by uu=open('test.txt','r') and then read the data as xx=uu.readlines() In xx,

Re: how to find a lable quickly?

2007-05-04 Thread Miki
Hello Frank, I am a new user on Python and I really love it. The more you know, the deeper the love :) I have a big text file with each line like: label 3 teststart 5 endtest 100 newrun 2345 I opened the file by uu=open('test.txt','r') and then read the data

Re: how to find a lable quickly?

2007-05-04 Thread Duncan Booth
wang frank [EMAIL PROTECTED] wrote: Hi, I am a new user on Python and I really love it. I have a big text file with each line like: label 3 teststart 5 endtest 100 newrun 2345 I opened the file by uu=open('test.txt','r') and then read the data as