G Guest Mar 3, 2004 #1 I have a binary file. How do i search for a string (pattern) and replace dynamically with new data. Thank Shmurthy
I have a binary file. How do i search for a string (pattern) and replace dynamically with new data. Thank Shmurthy
N Nice Chap Mar 18, 2004 #2 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.
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.