by Cesare Imperiali (4 Submissions)
Category: Files/File Controls/Input/Output
Compatability: Visual Basic 5.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating:
(5 Votes)

This will search inside files for a string.
Useful if you need to save on disk a list of files. It can search in any kind of file, but if you try with compiled ones (exes, dll) or zipped ones, it will most likely not find what you're looking for...
API DeclarationsRebuilt - Now there is a class that wrap code.
The ScanChunked function is based on a function I saw herearound, which I rated, but had a mistake:
stepped for x=1 to lenOfFile, step 32000
and did not check for remainder or if file was
shorter. This code is also a fix for that one.
Hope you enjoy.
Download New Search in Files (8 KB)