So you indeed need to read data in chunks as I said. Load a chunk and perform the search. Keep loading the next part of the file into the chunk until you get the data. To do this, you may use memory mapped file or one of the various read(...) functions (Win32 API, CRT etc). Either way, you would still have to read the file in chunks.
...byte till it megahertz... my donation to web rubbish