saving class object in file

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • wanwan

    #1

    saving class object in file

    when I program with Java, I'm able to open a file to open a file
    stream and an object stream, then save a class object into a file.

    I don't see any class in vb.net that is equivalent to object stream in
    Java.. Is there a way to do it in vb.net at all?

  • Tom Leylan

    #2
    Re: saving class object in file

    Here is what I suggest you try. Go to www.google.com and type "object
    stream in dotnet" which leads you to some 574,000 items. Among the items
    listed you will see references to the term "serializat ion" so future
    searches should include "dotnet serialization".

    Here is just one (not necessarily the best) of many links:


    "wanwan" <ericwan78@yaho o.comwrote in message
    news:1171765329 .085960.158290@ h3g2000cwc.goog legroups.com...
    when I program with Java, I'm able to open a file to open a file
    stream and an object stream, then save a class object into a file.
    >
    I don't see any class in vb.net that is equivalent to object stream in
    Java.. Is there a way to do it in vb.net at all?
    >

    Comment

    • Cor Ligthert [MVP]

      #3
      Re: saving class object in file

      Wanwan,

      Have a look at this sample,



      Cor

      "wanwan" <ericwan78@yaho o.comschreef in bericht
      news:1171765329 .085960.158290@ h3g2000cwc.goog legroups.com...
      when I program with Java, I'm able to open a file to open a file
      stream and an object stream, then save a class object into a file.
      >
      I don't see any class in vb.net that is equivalent to object stream in
      Java.. Is there a way to do it in vb.net at all?
      >

      Comment

      Working...