Re: Problem with readlines() and uml

2006-07-26 Thread Bruno Desthuilliers
wscrsurfdude wrote: > Sorry it is so hot in here, I make mistakes, I meant it to be an xml > file. But still sthe same problem > >>Ik have an xml file I want to read with readlines. I have the following >>code: >>infile = open("out2.txt","r") >>for line in infile.readlines(): >>print line >>

Re: Problem with readlines() and uml

2006-07-26 Thread Simon Brunning
On 26 Jul 2006 04:55:37 -0700, wscrsurfdude <[EMAIL PROTECTED]> wrote: > Sorry it is so hot in here, I make mistakes, I meant it to be an xml > file. But still sthe same problem Check out elementtree - . -- Cheers, Simon B, [EMAIL PROTECTED], http://www.

Re: Problem with readlines() and uml

2006-07-26 Thread wscrsurfdude
Sorry it is so hot in here, I make mistakes, I meant it to be an xml file. But still sthe same problem wscrsurfdude wrote: > Ik have an xml file I want to read with readlines. I have the following > code: > infile = open("out2.txt","r") > for line in infile.readlines(): > print line > > The pr

Re: Problem with readlines() and uml

2006-07-26 Thread Bruno Desthuilliers
wscrsurfdude wrote: > Ik have an uml file What is an "uml file" ? > I want to read with readlines. I have the following > code: > infile = open("out2.txt","r") > for line in infile.readlines(): > print line > > The print statement just gives the data, You get what can be read from the file

Problem with readlines() and uml

2006-07-26 Thread wscrsurfdude
Ik have an uml file I want to read with readlines. I have the following code: infile = open("out2.txt","r") for line in infile.readlines(): print line The print statement just gives the data, not the uml headings. Is there a solution which also gives the uml headings. -- http://mail.python.o