Groups | Blog | Home
all groups > vb.net > march 2006 >

vb.net : How to append record in binary file in vb.net



ashwini.chaturvedi NO[at]SPAM gmail.com
3/16/2006 11:24:23 PM
hi frnds,
can anyone tell me how to append record/records in a binary file in
vb.net
thax
zacks NO[at]SPAM construction-imaging.com
3/17/2006 9:08:30 AM
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.
Chris
3/17/2006 12:13:02 PM
[quoted text, click to view]

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.

AddThis Social Bookmark Button