FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Search text in textfile
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Search text in textfile
Posted: 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
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Search text in textfile
Posted: Thu Jul 02, 2020 05:39 PM
Code (fw): Select all Collapse
At( <cSearch>, <cString>, [<nStart>], [<nEnd>] ) --> nPos


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

EMG

Continue the discussion