How do I save a cookie to a file in Metro? (.net 4.5)
===

Basically, I need to know how to write this code in .net 4.5.  I'm having trouble finding it in MSDN.

     private void Savecookie(string filename, CookieContainer rcookie)
    {
        Stream stream = File.Open(filename, FileMode.Create);
        BinaryFormatter bFormatter = new BinaryFormatter();
        bFormatter.Serialize(stream, rcookie);
        stream.Close();
    }

File has been replaced by storage folder and I can't find a replacement for binaryformatter.  I can't figure out how to serialize the data for the file.

Thanks!