Re: find and replace string in binary file

2014-03-05 Thread Emile van Sebille
On 3/5/2014 1:59 AM, loial wrote: Unfortunately I have to use python 2.6 for this Did you try it? Emile -- https://mail.python.org/mailman/listinfo/python-list

Re: find and replace string in binary file

2014-03-05 Thread Mark Lawrence
On 05/03/2014 09:59, loial wrote: I'm pleased to see that you have answers. In return would you please read and action this https://wiki.python.org/moin/GoogleGroupsPython to prevent us seeing double line spacing, thanks. -- My fellow Pythonistas, ask not what our language can do for you, as

Re: find and replace string in binary file

2014-03-05 Thread loial
Thanks Emile. Unfortunately I have to use python 2.6 for this On Wednesday, 5 March 2014 00:13:00 UTC, emile wrote: > On 03/04/2014 02:44 PM, Chris Angelico wrote: > > > On Wed, Mar 5, 2014 at 12:18 AM, Peter Otten <__pete...@web.de> wrote: > > >> loial wrote: > > >> > > >>> How do I read a

Re: find and replace string in binary file

2014-03-04 Thread emile
On 03/04/2014 02:44 PM, Chris Angelico wrote: On Wed, Mar 5, 2014 at 12:18 AM, Peter Otten <__pete...@web.de> wrote: 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 st

Re: find and replace string in binary file

2014-03-04 Thread Chris Angelico
On Wed, Mar 5, 2014 at 12:18 AM, Peter Otten <__pete...@web.de> wrote: > 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

Re: find and replace string in binary file

2014-03-04 Thread Peter Otten
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. That's not possible. You have to convert either binary to string o

Re: find and replace string in binary file

2014-03-04 Thread MRAB
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

find and replace string in binary file

2014-03-04 Thread loial
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 -- https://mail.python.org/mailman/listinfo/python-list