Member Avatar for apeiron27

my text file content looks sth like this:

-title
info~~~~
~~~~~~~~`
~~~
-tittle
info~~~~
`~~~~``

and so on..
the no of line in the info section is not constant.
i want to pick the data with the right title and save it in another file
i'm guessing i need to use 'for line in file: blahblahlbah~' but i'm not sure..
any idea how i should do this?
it'd be really nice if you guys could help me out.
thanks

yep just parse the file , try using regular expressions.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.