Home All Groups Group Topic Archive Search About

How to append record in binary file in vb.net

Author
17 Mar 2006 7:24 AM
ashwini.chaturvedi
hi frnds,
can anyone tell me how to append record/records in a binary file in
vb.net
thax

Author
17 Mar 2006 5:08 PM
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.
Author
17 Mar 2006 5:13 PM
Chris
ashwini.chaturv***@gmail.com wrote:
> 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