mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2004
Posts: 133
W
Vogon poet
OP Offline
Vogon poet
W
Joined: Jan 2004
Posts: 133

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 ?

Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
alias addline {
  if (!$read(file.txt,w,$1-)) write file.txt $1-
}


/addline <sentence>

-Andy

Joined: Jan 2004
Posts: 133
W
Vogon poet
OP Offline
Vogon poet
W
Joined: Jan 2004
Posts: 133
THANKS ! works great !


Link Copied to Clipboard