473,511 Members | 9,908 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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?

Feb 18 '07 #1
2 2654
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 "serialization" so future
searches should include "dotnet serialization".

Here is just one (not necessarily the best) of many links:
http://www.programmersheaven.com/2/F...tion-Explained

"wanwan" <er*******@yahoo.comwrote in message
news:11**********************@h3g2000cwc.googlegro ups.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?

Feb 18 '07 #2
Wanwan,

Have a look at this sample,

http://www.vb-tips.com/dbpages.aspx?...c-61641f5c8d9d

Cor

"wanwan" <er*******@yahoo.comschreef in bericht
news:11**********************@h3g2000cwc.googlegro ups.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?

Feb 18 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
7512
by: G-Factor | last post by:
Hi all I've just started learning about saving files. I got bit of a problem. The following code gives me an error about incompatible types. (Cannot covert from class character to char *). I...
1
2356
by: Niklas Lagergren | last post by:
Hi, I'll try to explain. I'm now using C# and I have an xmlfile that contains users and information about them, this xmlfile can be read and changed from many threads in my application, as many...
4
3273
by: dale zhang | last post by:
Hi, I am trying to save and read an image from MS Access DB based on the following article: http://www.vbdotnetheaven.com/Code/Sept2003/2175.asp Right now, I saved images without any...
11
2394
by: Tom | last post by:
I am planning on adding a Preferences form to my application and using the Property Grid to display the preferences to the user. What do you think would be the best way to save these preferences...
1
1620
by: Tom | last post by:
I have a large application; lots of forms, multiple dynamic DLLs, etc. I also have, in the appliation, a general 'Preferences' class object (which is in itself a separate DLL, and I just include a...
5
2488
by: Steve Marshall | last post by:
Hi all, I am converting an app which used a picturebox to draw graphs etc onto, then saved them to a file. I can certainly draw things onto a picturbox in VB.NET, but how do I save them to a...
4
6702
by: Pedro Leite | last post by:
Good Afternoon. the code below is properly retreiving binary data from a database and saving it. but instead of saving at client machine is saving at the server machine. what is wrong with my...
6
8100
by: Jeff | last post by:
Hey (and thank you for reading my post) In visual web developer 2005 express edition I've created a simple website project.. At this website I want users who register to be able to upload a...
3
1621
by: shuisheng | last post by:
Dear All, Assume I have two classes: material and shape, as follows class Material { double density; // material attribute, may have more vector<Shape*pShape; // shape objects assocaited...
4
1916
by: mlamb1 | last post by:
I have some code that works it seems a bit of a hack. I want to know if there is a more c++y way to do it. Here's my code:- class CMyClass{ public: void Save(CFile fOut); void Load(CFile...
0
7251
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7367
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7430
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7517
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5673
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5072
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
1
790
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
451
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.