Hello,
Iam beginner in python and my english is not so good. Sorry.
I want (must) to write a program witch must read the .txt file and pursuant to the informations in text write another text to another file. :) example:
in .txt file:
<HEADLINE text="This is headline 1">
<PARAGRAPH file="path to the file.txt">
Python read this and write to another file this:
hd.append(Heading(1,"This is headline 1"))
text = open("file.txt", "r").read( )
hd.append(Paragraph( PRE(text) ))
Thank you for anything...I dont know. Read the text term by term and when term=Headline then write to the other file hd.append(Heading(1,a)) and find the text between " " witch is a? I really dont know how to do this.
Thank you