mIRC Homepage
Posted By: WarlockW Help With Reading Txt File ... - 29/09/05 04:21 PM

I need a script that will check a txt file for a line of text
and if in that txt file the line matches the input txt it would NOT add that line

if ( %text-i-want-in-file isin %TEXT-FILE.txt ) /halt
write %TEXT-FILE.txt %text-i-want-in-file

kinda like that lol

Any Ideas ?
Posted By: SladeKraven Re: Help With Reading Txt File ... - 29/09/05 05:01 PM
Code:
alias addline {
  if (!$read(file.txt,w,$1-)) write file.txt $1-
}


/addline <sentence>

-Andy
Posted By: WarlockW Re: Help With Reading Txt File ... - 29/09/05 05:13 PM
THANKS ! works great !
© mIRC Discussion Forums