This is more of a bug report than feature request.
It seems that the find dialog doesn't quite work when used with a binary file. If you open a binary file, select Search | Find, and select Hex, the find feature will only work for non-zero bytes. For example, searching for "4F28" will find those bytes if they exist, but searching for "440023" will match the first occurrence of "44", ignoring the "0023".
TextPad is probably treating the 00 as a null terminator, but I need to search for strings of bytes with "00" in them. Is there another way to do this?
Thanks,
..Dustin
Finding a zero byte in a binary file
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
- talleyrand
- Posts: 624
- Joined: Mon Jul 21, 2003 6:56 pm
- Location: Kansas City, MO, USA
- Contact:
Alas, TP could use a bit of beefing up in the binary file editing arena although I do believe I have seen somewhere in the documentation where it notes that it cannot handle the NULL character. I have found XVI to be an excellent, free, binary file editor.
I choose to fight with a sack of angry cats.
In the past I have tried to search for just 00 using the hex search. This results in TextPad hanging and having to be killed. It seems like TextPad converts the hex codes to a string and then calls the regular search routine. There should probably be a different search routine for hex, since when searching a binary file a byte value off 00 is just as significant as 01-ff.