I'm working on a program to extract the flash file locations from a web page. I can get the ifstream working for a local file, but the second I introduce the http protocol, it doesn't. Maybe I'm using the completely wrong method. Please Help!
I'm working on a program to extract the flash file locations from a web page. I can get the ifstream working for a local file, but the second I introduce the http protocol, it doesn't. Maybe I'm using the completely wrong method. Please Help!
how can I read an internet file then?
What O/S are you using?
You need to create a socket object of some sort, bind a port, connect to the server, download the file, and then analyze. C++ does not currently support this within the standard library. It's O/S specific. It's not a task for a newbie.
You could probably find libraries that support doing this kind of stuff for you, however, so it might be easier if you go that route.
I'm using Windows.
Winsock is the socket system you need to write for if you want to do it natively and completely manual:
Google: Winsock tutorial
Otherwise, look for libraries. I haven't really looked into boost, but heck, it seems to have a lot of features.
Use asio if you're going to use boost.