I'm trying to save and load objects from my form. Like say I have a listbox and a checked list box, I want to save the contents of these boxes to a file, NOT TEXT but through bytes (the right way). How do I do it? I need help. Any links, info, snippets. thanks :)

Recommended Answers

Check out the FileStream class. It has ReadBytes and WriteBytes methods that can be used to read and write bytes to a file. The code sample on this page is a bit simple, but Google the FileStream class and you will find …

Jump to Post

All 2 Replies

Check out the FileStream class. It has ReadBytes and WriteBytes methods that can be used to read and write bytes to a file. The code sample on this page is a bit simple, but Google the FileStream class and you will find plenty of examples.

hi,

You can go for IO handling which has file stream reader and stream writer to read and write data ...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.