Just before I headed up to Web Directions North, I wrote a little chunk of code to help me do a system back up.  Enough people at work have been losing data on their hard disks, so I decided I wasn't going to have that happen to me.  I picked up a NAS storage device, 2 500gig hard drives, and got it all set up at home.  It works quite nicely.  I set up SyncToy to back up all the data that I find important, and run daily or weekly. 

But one thing was not getting back up that I was a bit worried about.  My RSS feed list.  I couldn't find where the RSS platform stores the OPML list, or even if it does, so I figured, since it's an open platform, I'd just write a method that would create the OPML list for me!  Once I got the initial work done, it was really easy. 

So, I figured I'd share the code.  This code will return a string, that is the OPML list of all the feeds that you've subscribed to using the RSS Platform.  Sure you can just go into IE, and choose File/Export, but that's a manual process, I wanted something automatic.

using System;
using System.IO;
using System.Collections.Generic;
using System.Text;
using Microsoft.Feeds.Interop;
using System.Collections.Specialized;

namespace BackupHelper
    class OPMLBuilder
        public string Result
                return sbResult.ToString();

        StringBuilder sbResult;

        public OPMLBuilder()
            sbResult = new StringBuilder();