I have a program im working on to extract pngs (and later on more files) ...but currently i am using BinaryReader, and i read it byte-by-byte to check for png header/footer. For most files (even those over just a few hundred kb) it takes a little bit.
is there any way to just search in the file for what im looking for, or any ideas on a faster way to do this?
it does *work* the way i am doing it...its just slow :)
Question
SkyyPunk Veteran
I have a program im working on to extract pngs (and later on more files) ...but currently i am using BinaryReader, and i read it byte-by-byte to check for png header/footer. For most files (even those over just a few hundred kb) it takes a little bit.
is there any way to just search in the file for what im looking for, or any ideas on a faster way to do this?
it does *work* the way i am doing it...its just slow :)
Thanks
Doug
Link to comment
https://www.neowin.net/forum/topic/415646-c-searching-for-a-hex-string-in-a-file/Share on other sites
3 answers to this question
Recommended Posts