On 2014-03-04 12:27, loial wrote:
How do I read a binary file, find/identify a character string and
replace it with another character string and write out to another
file?

Its the finding of the string in a binary file that I am not clear
on.

Any help appreciated

Read it in chunks and search each chunk (the chunks should be at least
as long as the search string).

You should note that the string you're looking for could be split
across 2 chunks, so when writing the code make sure that you include
some overlap between adjacent chunks (it's best if the overlap is at
least N-1 characters, where N is the length of the search string).
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to