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. Favorites from HTML

Favorites from HTML

Scheduled Pinned Locked Moved C#
csharphtmltutorialworkspace
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.
  • M Offline
    M Offline
    MAW30
    wrote on last edited by
    #1

    I wish to setup some of my favorites in Internet Explorer programmatically through C# from an HTML file (same as IE export file or similar). Can anyone point me to an example or write code or point me in the right direction. Thanks in advance, Michael

    L 1 Reply Last reply
    0
    • M MAW30

      I wish to setup some of my favorites in Internet Explorer programmatically through C# from an HTML file (same as IE export file or similar). Can anyone point me to an example or write code or point me in the right direction. Thanks in advance, Michael

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      You can [File.ReadAllText](http://msdn.microsoft.com/en-us/library/ms143368.aspx)[[^](http://msdn.microsoft.com/en-us/library/ms143368.aspx "New Window")] to read in such an IE export file. There's an example on the bottom of that page. One could also [File.ReadAllLines](http://msdn.microsoft.com/en-us/library/s2tte0y1.aspx)[[^](http://msdn.microsoft.com/en-us/library/s2tte0y1.aspx "New Window")], if that's easier with manipulating strings. Lastly, (you can almost guess it), there's also a [File.WriteAllText](http://msdn.microsoft.com/en-us/library/system.io.file.writealltext.aspx)[[^](http://msdn.microsoft.com/en-us/library/system.io.file.writealltext.aspx "New Window")] method available. You'll find them all in the System.IO namespace[^], which you'll need to add to your "usings".

      Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

      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