mIRC Homepage
Posted By: JAFO Text Comparison - 15/01/05 01:26 PM
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. smirk
Posted By: FiberOPtics Re: Text Comparison - 15/01/05 01:45 PM
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 }
Posted By: JAFO Re: Text Comparison - 15/01/05 03:37 PM
That was exactly what i needed , thanx!
Posted By: FiberOPtics Re: Text Comparison - 16/01/05 01:10 AM
You're welcome!
© mIRC Discussion Forums