How to append record in binary file in vb.net

  • Thread starter Thread starter ashwini.chaturvedi
  • Start date Start date
A

ashwini.chaturvedi

hi frnds,
can anyone tell me how to append record/records in a binary file in
vb.net
thax
 
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.
 
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
 
Back
Top