4 Replies - 9194 Views - Last Post: 22 October 2010 - 03:53 AM Rate Topic: -----

#1 prasad198  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 22-October 10

How can we read a html file in C++

Posted 22 October 2010 - 02:58 AM

I need to convert html file to postscript file in C++.For that basically i need to read the contents of the html file.How can we do that? Is there any library available for doing it?
Is This A Good Question/Topic? 0
  • +

Replies To: How can we read a html file in C++

#2 Aphex19  Icon User is offline

  • Born again Pastafarian.
  • member icon

Reputation: 614
  • View blog
  • Posts: 1,873
  • Joined: 02-August 09

Re: How can we read a html file in C++

Posted 22 October 2010 - 03:19 AM

You just want to read the entire contents of a file? Maybe my tutorial on reading binary information from files will help?
Was This Post Helpful? 0
  • +
  • -

#3 prasad198  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 22-October 10

Re: How can we read a html file in C++

Posted 22 October 2010 - 03:28 AM

View PostAphex19, on 22 October 2010 - 02:19 AM, said:

You just want to read the entire contents of a file? Maybe my tutorial on reading binary information from files will help?





I actually need a html parser C++ library
Was This Post Helpful? 0
  • +
  • -

#4 Banfa  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 83
  • View blog
  • Posts: 109
  • Joined: 07-June 10

Re: How can we read a html file in C++

Posted 22 October 2010 - 03:28 AM

Reading an HTML file is easy, it is just a text file and can easily be opened and read with the STL stream classes.

However what you want to do is not just read the file but then render the HTML and produce a postscript output which is much harder.

However there are open source HTML renders available such as WebKit or Gecko. This not a subject I have researched in depth but I guess they may help.
Was This Post Helpful? 0
  • +
  • -

#5 janotte  Icon User is offline

  • code > sword
  • member icon

Reputation: 990
  • View blog
  • Posts: 5,141
  • Joined: 28-September 06

Re: How can we read a html file in C++

Posted 22 October 2010 - 03:53 AM

This is some good extra reading
http://www.cplusplus...tutorial/files/


This thread continues here
http://www.dreaminco...ersion-using-c/

This post has been edited by janotte: 22 October 2010 - 03:57 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1