☰
d2jsp
Rules
Help
Forum Gold FAQ
Live Streams
Photo Gallery
Hourly Raffle
Ladder Slasher
Log In
Register
Log In
Register
Account Recovery
Resend Validation Email
d2jsp Forums
>
Off-Topic
>
Computers & IT
>
Programming & Development
> Simple C++ Problem
Add Reply
New Topic
New Poll
Views: 245
Replies: 2
Track Topic
togepi
Member
Posts: 3,277
Joined: Sep 13 2009
Gold
:
0.00
#1
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.
Minkomonster
Member
Posts: 1,995
Joined: Jun 28 2006
Gold
:
7.41
#2
Feb 16 2014 08:36pm
The same way you would read text input from any input stream.
SelfTaught
Member
Posts: 1,358
Joined: Dec 30 2012
Gold
:
0.10
#3
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
© 2003-2026 d2jsp
Contact