Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Find text inside existing files
#9
A simple example. Finds selected text in txt file containing simple list.
Macro Macro1646
Code:
Copy      Help
str sSel.getsel; err ret ;;get selected text

str sData.getfile("$documents$\my file.txt") ;;get file data
str sItem
foreach sItem sData ;;for each line
,if sItem~sSel ;;compare
,,out "found"
,,break


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)