marcCbrands
asked on
looking for a function that will load a URL into a character array
I am looking for a C++ function that I can give an URL and that will load the html and make it stream avalaible to me. Something like this:
char* s;
s = load("http://www.cnn.com");
Marc
char* s;
s = load("http://www.cnn.com");
Marc
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
This is a pointer and cannot store anything.
>> s = load("http://www.cnn.com");
You can do it like this however,
char s[100];
strcpy( s, "http://www.cnn.com" );
cout << s << endl;
-- output --
http://www.cnn.com
Cheers!
Exceter