Favorites from HTML
-
-
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
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[^]