C
Chris R.
I'm trying to do something relatively simple - find the offset of the
first - or next - occurance of a string in a file, ideally in a case-
insensitive way. I've seen a few solutions that seemed to involve
loading the whole file as a string, but that seems to be limiting the
size of the file stream that could be handled.
Is there a way to do searching with just the stream? Or do i need to
start loading the file into string buffers of limited size and
searching those? I'd rather not, since handling possible overlap would
be a pain, but...
Anyway, hope to see help here soon.
Thanks.
first - or next - occurance of a string in a file, ideally in a case-
insensitive way. I've seen a few solutions that seemed to involve
loading the whole file as a string, but that seems to be limiting the
size of the file stream that could be handled.
Is there a way to do searching with just the stream? Or do i need to
start loading the file into string buffers of limited size and
searching those? I'd rather not, since handling possible overlap would
be a pain, but...
Anyway, hope to see help here soon.
Thanks.