Re: Find sequence in binary fiel and advance from there

2019-05-07 Thread H. S. Teoh via Digitalmars-d-learn
On Tue, May 07, 2019 at 08:26:16AM +, alex1974 via Digitalmars-d-learn wrote: > I want to read a binary file and validate that it contains the > sequence [73,68,51] (ID3). And than start to read from this position > onward. > > I could read in the whole file as an ubyte array but I would pref

Find sequence in binary fiel and advance from there

2019-05-07 Thread alex1974 via Digitalmars-d-learn
I want to read a binary file and validate that it contains the sequence [73,68,51] (ID3). And than start to read from this position onward. I could read in the whole file as an ubyte array but I would prefer a range-based solution. Has anyone done this and could point me in the right directio