Reading html

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John

    Reading html

    Hi

    How can I read an html file into a string variable?

    Thanks

    Regards


  • Herfried K. Wagner [MVP]

    #2
    Re: Reading html

    "John" <John@nospam.in fovis.co.ukschr ieb:
    How can I read an html file into a string variable?
    'My.Computer.Fi leSystem.ReadAl lText'.

    --
    M S Herfried K. Wagner
    M V P <URL:http://dotnet.mvps.org/>
    V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

    Comment

    • kimiraikkonen

      #3
      Re: Reading html

      On Mar 14, 2:12 am, "Herfried K. Wagner [MVP]" <hirf-spam-me-
      h...@gmx.atwrot e:
      "John" <J...@nospam.in fovis.co.ukschr ieb:
      >
      How can I read an html file into a string variable?
      >
      'My.Computer.Fi leSystem.ReadAl lText'.
      >
      --
       M S   Herfried K. Wagner
      M V P  <URL:http://dotnet.mvps.org/>
       V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>
      Note that ReadAllText or StreamReader reads the HTML with html code
      that has to be processed in a browser if you want, so if you only need
      specific text except html codes, use webbrowser control then select
      and copy the content.

      Comment

      Working...