Web browser data

I was wondering how I would go about taking an integer from an html table in any popular browser and use it in the program. I dont have any code to show for it since I'm clueless on how to do this.

All I need is to get the numerical data into a variable.

I would greatly appreciate it.
You'll need some library that can interface with the browser, and there's exactly zero of that stuff in standard C++. Check OS libraries like the stuff on MSDN, but you'll have a rough time doing anything unless you pass in some files, afaik.
If you extract the html as a file and open a file to it in your prog, you should probably have an easier time. Do you know your basic file IO?
Ok, I do know basic file IO, I'm know how to pull the data from a file just not from a specific location in a file.
Last edited on
Go through it line by line and check for whatever you're looking for, character by character. There's probably a faster way but for the life of me I can't remember it. Check the reference on this website for data on std::string. There's probably a member for this kind of thing.
I should have explained more. I want to look at a specific location for a number that will change over time. The data location will be static in the file, but the number wont be. I'm not sure I see anything that can help in there, but i will keep looking.

My intent is to run an audio file when the integer gets to a given value.
Thank you very much. I will try it when I get the chance.
Topic archived. No new replies allowed.