public static void SaveCorpus(Hashtable ht, string filename)
        {
            FileStream stream1 = new FileStream(Filename, 
FileMode.OpenOrCreate, FileAccess.Write);
            BinaryFormatter formatter1 = new BinaryFormatter();
            formatter1.Serialize(stream1, ht);
            stream1.Close();
        }

  ----- Original Message ----- 
  From: Charles Carroll 
  To: [email protected] 
  Sent: Wednesday, May 18, 2005 3:36 PM
  Subject: Re: [AspNetAnyQuestionIsOk] Hashtables


  That is the whole point of seriliazation and deserialization.

  Serilaize any object/hasthtable to XML or Binary and put that in a file.

  Read the file and deserialize it and you have the same HashTable
  oebjcet as before.

  On 5/18/05, Helge Thomas Hellerud <[EMAIL PROTECTED]> wrote:
  >  Hello,
  >  
  >  Is there a way to store hashtables in .NET permanently on disk?
  >  
  >  Helge
  >  
  >  
  >  ________________________________
  >  Yahoo! Groups Links
  >  
  >  
  > To visit your group on the web, go to:
  > http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
  >   
  > To unsubscribe from this group, send an email to:
  > [EMAIL PROTECTED]
  >   
  > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


------------------------------------------------------------------------------
  Yahoo! Groups Links

    a.. To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
      
    b.. To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]
      
    c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 



[Non-text portions of this message have been removed]



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to