Read/Write binary file

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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

Thank
Shmurthy
 
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.
 
Back
Top