easy question related to reading and scanning

hi i am not an expert in c++ nor do i know how to use windows forms application in c++.


the thing is that i was able to produce in the windows forms application a web browser and I added a save button.
So know I am able to navigate predeclared webpages such as google.com
and then I entered google's search box such as "number of hippos".

I later save the page as text file on my computer.

I wanted to know how to organize the words in the text file ?
i mean how can i just get the number of hippos in south africa , number of hippos in ghana (if they exist).that is to eliminate the unneeded information such as the the characteristics and the useless ideas?


Please i need your help because i am currently lost in this stage

thank you very much
closed account (4Gb4jE8b)
because you're saving the entire page (from what i understand) to a text file, what you can do is then read that text file (by making it fstream versus ifstream or ofstream) and then read each character into a buffer. Then parse through that buffer with the information you specifically want, and delete the rest. Then use fstream::trunc to rewrite the original file with only the new information. The hard part will honestly be identifying the information you really want versus the unneeded information.
Topic archived. No new replies allowed.