Read/Write binary file

G

Guest

I have a binary file. How do i search for a string (pattern) and replace dynamically with new data.

Thank
Shmurthy
 
N

Nice Chap

1. Use a BinaryReader and a BinaryWriter
2. Read the strings one by one and process it.
3. Write it to a temporay file(or to a buffer - byte()) after processing.
4. Finally transfer the contents of the temp file/buffer to your orignal
file.
 

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