Point me to where I need to go to compare text to text located in a .txt file. In other words if Xtext exists in Text.txt halt , else write Xtext to Text.txt. I just need to figure out how to compare the two.
That depends on how you want to match it.
If you say "xtext is in file" do you mean an exact instance of xtext without wildcards?
Like:
word1
word2
xtext
word3
or more like:
word1
this is blablaxtextblabla
word2
Specific matching goes with: if !$read(myfile.txt,nw,xtext) { do things }
Wildcard matching like the second thing is: if !$read(myfile.txt,nw,*xtext*) { do things }
That was exactly what i needed , thanx!