Accessing the Web C++
How hard is it to access the web with C++? How can I do it?
Basically I want to load a file from the web just as if it was a local computer file into my C++ program.
Thank you much!
I don't have your answer, but I do know that we need to know more.
OS: Linux? Windows? OS X? Something else?
gcc? Visual C++? Borland C++Builder? Whatever the iMac uses? Dev-C++?
Under Visual C++ & Win32, there are higher-level functions called WinInet, which wrapper functions in the Win32 API. There's also ISAPI. If you're doing Win32, that might be the direction you're wanting to go.
Microsoft Visual Studio 6.0
I'm just making simple dos based programs etc. First year kind of stuff.
Under Win32, those "simple dos based programs" are console applications which still have access to the Win32 API and to the MFC. You can do multithreading, load and use DLLs, and also make use of MFC's WinInet wrappers, none of which you could have done just under DOS (ie, on pre-Win95 machines).
As I mentioned, it looks to me -- who has never tried to do what you are wanting to do -- that WinInet and possibly even ISAPI are the keywords that you should research for an answer. If you have access to Kruglinski's "Inside Visual C++" or "Programming MicroSoft Visual C++ 5th Edition" (same book, next edition), then the sockets chapter covers WinInet and the IIS chapter covers ISAPI. For example, the IIS chapter talks about doing an HTTP GET, which is how you fetch a page from a web server.