Share via

Read Website Data in C++ Program

Anonymous
2015-11-10T22:16:19+00:00

Is it possible to read and store text from a website in a C++ win 32 console application? The purpose of this program would allow the text to automatically update every time I open the program. It would be best to save the text as a string, if possible, so I can output it in the command prompt. I'm working on a project where I need to display constantly fluctuating prices, which are updated on a website. If it is not possible in a win32 console application, could you direct me to another C++ programming file type? The compiler I use is Visual Studio 2015- Community Edition. Thanks!

Windows for home | Previous Windows versions | Apps

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2015-11-10T23:06:55+00:00

I recommend you post your question in a C++ forum.

If C++ can shell out to the operating system then you could use wget.exe to suck down your web page content. CScript and PowerShell can also do it.

Was this answer helpful?

0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Anonymous
    2015-11-11T07:01:35+00:00

    A Google search for C++ forums will give you quite a few hits.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2015-11-11T02:00:20+00:00

    Thank you for your reply! Is it possible to do this without the use of any other external Windows program except for the compiler. Also, I was unable to find the c++ forum. Is it in the standard list of categories for questions?

    Was this answer helpful?

    0 comments No comments