How to search and replace there bytes in file with one byte?

Status
Not open for further replies.

aamiralikhoja

Member level 5
Joined
Aug 11, 2004
Messages
90
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
708
How to search and replace there bytes in file with one byte ie if

file containd 112233 i want to replace with 0f in whole file please give me

alogorthm.
 

Re: help How to do this?

You will copy the file into another with an N-character pre-read buffer. If the content of the buffer is the same with some character sequence to be replaced, just write some replacing character sequence and make the buffer empty.
 

Re: help How to do this?

Thanks but how to do this ? I need some code not only idea.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…