Search text in textfile

Search text in textfile

Postby Marc Vanzegbroeck » Thu Jul 02, 2020 11:16 am

Hi,

I need to seach a string in more then 10000 text-files.
If exist, I have to add the file-name into a database.

What is the fastest way to search a string in a text-file?
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc Vanzegbroeck
 
Posts: 1159
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium

Re: Search text in textfile

Postby Enrico Maria Giordano » Thu Jul 02, 2020 5:39 pm

Code: Select all  Expand view  RUN
At( <cSearch>, <cString>, [<nStart>], [<nEnd>] ) --> nPos


Please note: for best result you have to use nPos and update nStart accordingly.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 71 guests