Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How do i read HTML files into a string like .txt files.

How do i read HTML files into a string like .txt files.

Scheduled Pinned Locked Moved C#
questionhtml
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Red_Wizard_Shot_The_Food
    wrote on last edited by
    #1

    I want my program to read in an HTML file on the internet into a string, how do i go about doing this? Thanks in advance, RWSTF.

    P 1 Reply Last reply
    0
    • R Red_Wizard_Shot_The_Food

      I want my program to read in an HTML file on the internet into a string, how do i go about doing this? Thanks in advance, RWSTF.

      P Offline
      P Offline
      Peter Molnar
      wrote on last edited by
      #2

      1.Download the file. Look up for this HttpWebRequest, or WebClient in MSDN (WebClient is somewhat easier to use for the first time). If you dont know, also look up HTTP communication 2.Save the the downloaded string into a text file, look up IO e.g.: StreamWriter Peter Molnar

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups