Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Window Text
#2
If you don't need to open file with notepad,

Code:
Copy      Help
str S E("findme") M      ;;;;; 'E("findme")' is equal to ' str E="findme" '
str T = "c:\tmp.txt"     ;;;;; target file
int F
S.getfile(T)                ;;;;; load 'tmp.txt' to string S
F = find(S E)               ;;;;; find('target' 'what you want to find')
if (F>0)                      ;;;;; if found, F is >0
    M.format("text %s found" E)
    out M


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)