mIRC Home    About    Download    Register    News    Help

Print Thread
Help With Reading Txt File ... #131422 29/09/05 04:21 PM
Joined: Jan 2004
Posts: 133
W
WarlockW Offline OP
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 ?

Re: Help With Reading Txt File ... #131423 29/09/05 05:01 PM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
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

Re: Help With Reading Txt File ... #131424 29/09/05 05:13 PM
Joined: Jan 2004
Posts: 133
W
WarlockW Offline OP
Vogon poet
OP Offline
Vogon poet
W
Joined: Jan 2004
Posts: 133
THANKS ! works great !