hi. im a beginner on c++.(This is not a schoolassignment im doing this for my own amusement.) I want to read a text file,and try to extract certain parts of it into variables i can write to a new file, Basicly i want to make an rss feed file out of a txt file or html page.
read and write from-to file is ok. Its the parsing bit im not sure how to do. The data i want to read from txt file looks like this:
<b> title </b> made by user date/time http=link <b> another title <b> made by new user date/time http=link and repeats X times (no linebreaks).. its a news post text file btw.
I need to extract certain parts like between <b> and </b> and "made by" and "http" over and over again until end of file , so i can place them into a new file.
so the new file is looking something like this :
<title> title </title>
<description>made by user date/time</description>
<link> http= ...</link>
<title> another title </title>
<description> ...etc
im not about to juggle with the numbers or anything
Any help is good since im a truly novice and not sure where to begin with the parsing bit. thanks in advance