How to append record in binary file in vb.net

A

ashwini.chaturvedi

hi frnds,
can anyone tell me how to append record/records in a binary file in
vb.net
thax
 
Z

zacks

The concept of "records" does not exist in a binary file, just bytes.
So to add data to the end of the file simply open it for Append. To
insert bytes somewhere in the middle is harder and probably would
require a temporary file.
 
C

Chris

hi frnds,
can anyone tell me how to append record/records in a binary file in
vb.net
thax

Look at the System.IO classes. There is a binary writer class that will
help you. Just make sure when you open the stream you set it for append.

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top