PC Review Forums Newsgroups Microsoft DotNet Microsoft VB .NET Search file for binary pattern

Reply

Search file for binary pattern

 
Thread Tools Rate Thread
Old 12-06-2005, 08:16 AM   #1
junkmauler@gmail.com
Guest
 
Posts: n/a
Default Search file for binary pattern


I need a pre-made class (this is way over my head.. I can imagine the
pseudo code but cant implement it myself) that can search a file for a
specified binary pattern.

Actually what I really need is a way to read in a buffer (say 4k) and
search that buffer for multiple binary patterns, which would require a
smart sliding window to search a large amount of patterns in a short
amount of time.

Anyone have any suggestions?

  Reply With Quote
Old 12-06-2005, 08:40 AM   #2
Ken Tucker [MVP]
Guest
 
Posts: n/a
Default Re: Search file for binary pattern

Hi,

Regual expressions are great for searching for patterns

http://msdn.microsoft.com/library/d...expressions.asp

Ken
-------------------------
<junkmauler@gmail.com> wrote in message
news:1118560609.170313.222930@g44g2000cwa.googlegroups.com...
I need a pre-made class (this is way over my head.. I can imagine the
pseudo code but cant implement it myself) that can search a file for a
specified binary pattern.

Actually what I really need is a way to read in a buffer (say 4k) and
search that buffer for multiple binary patterns, which would require a
smart sliding window to search a large amount of patterns in a short
amount of time.

Anyone have any suggestions?


  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off