Extract String from html file

Jan 22, 2010 at 4:59pm
string::copy --> method was useful but it was brief. How do i extract a word or phrase from html file and display on the screen? Do i need to use any special class or include any class?plz help!
Jan 22, 2010 at 8:48pm
You do it the same way, you would do it with any other file.
How do you know which word are you looking for?
If your word is after some tag you know, you cold iterate through the file, find the tag and add the length of the tag to the char* you got.
You will of course need <fstream> and <string>.
Last edited on Jan 22, 2010 at 8:48pm
Jan 23, 2010 at 7:14am
Hi Bro, Thanks for the useful advice. Basically i need to extract data from a html file n display on the screen. E.g. when i choose Dow jones, it should extract the indices, the point difference and the date and display from the html file(e.g. sg.finance.yahoo.com). It is not real time. so i can the the html file in my project. Any other suggestion plz....? thanks bro
Topic archived. No new replies allowed.