But if you read it in chunks, a chunk might end in the middle of the text you are looking for.
© 1996-2023 Experts Exchange, LLC. All rights reserved. Covered by US Patent
Open "c:\MyPath\Test.txt" For Input As #1
strBuffer = Input(LOF(1), 1)
If Instr(1, strBuffer, "example") Then
MsgBox "It's there'