d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Simple C++ Problem
Add Reply New Topic New Poll
Member
Posts: 3,277
Joined: Sep 13 2009
Gold: 0.00
Feb 16 2014 08:22pm
How can I get a program to read the entire contents of an html file and echo print it back to the user?
I'm pretty sure I could create a while loop and have it read one character at a time until the end of the file text, but how could I write that?
Any help appreciated fellas, thanks.
Member
Posts: 1,995
Joined: Jun 28 2006
Gold: 7.41
Feb 16 2014 08:36pm
The same way you would read text input from any input stream.
Member
Posts: 1,358
Joined: Dec 30 2012
Gold: 0.10
Feb 16 2014 09:40pm
Quote (Minkomonster @ Feb 16 2014 06:36pm)
The same way you would read text input from any input stream.


This.

If you nneed to parse anything specific from the html I'd recommend htmlcxx
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll