I need a program that will find a specific string in a binary file, and then create an output stream to display the lines containing the string in another binary file.
it's like a list of fields containing data. The program must be able to locate (as paul said) a sequence of bytes) then opens an output stream, copies the fields (in this case, lines) containing the "findByte" data into a new output binary file.
Then the logic is the same as for text files. Read a "line", see if it contains the desired sequence of bytes, and if it does then write the "line" to the output file. Repeat until end of file.
Drove my Chevy to the levee but the levee was dry. A wrung this tiny ad and it was still dry.
a bit of art, as a gift, the permaculture playing cards