but why is that better than this: ...
My fragment doesn't assume that the huge file will fit in memory, and it matches across read boundaries. Your approach sets up for a single-read slurp.
In reply to Re^4: Matching in huge files
in thread Matching in huge files