Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Find text inside existing files
#11
Gintaras Wrote: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

This actualy look's exactly like the workflow im looking for Smile
Thank's a lot ken! Can't believe how fast you came up with it 8)


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)