mIRC Home    About    Download    Register    News    Help

Print Thread
O
onesikgypo
onesikgypo
O
hey got the following script but the $read bit doesnt seem to be working, basically if %x is already in the text file it shouldnt write it again, but it keeps on writing it

Code:
    if (!$read(listing $+ $replace($date,/,-) $+ .txt, w, * %x * )) {
  


im sure its something simple im missing

Edit: hixxy it actually isnt what your thinking, these are for "book packs" that we offer our customers.

Last edited by onesikgypo; 15/02/06 01:32 PM.
Joined: Sep 2005
Posts: 2,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
Sorry but this forum doesn't help with filesharing.

O
onesikgypo
onesikgypo
O
View Edited

Joined: Sep 2005
Posts: 2,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
Right ok because of this thread I'm going to give you the benefit of the doubt.

You had more code than that in your original post and it showed that each line ended with pack: %x, therefore you should be using * %x as a wildcard instead of * %x * in the $read command.

D
DaveC
DaveC
D
if (!$read(listing $+ $replace($date,/,-) $+ .txt, w, $+(*,%x,*))) {
^ That would find any occurance of %x's contents in the file, however as hixxy said, if your actually looking for %x being on the end of the string with other words then a space before it its.
if (!$read(listing $+ $replace($date,/,-) $+ .txt, w, * %x)) {

Quote:
these are for "book packs" that we offer our customers.

Interesting reading these books are they?


Link Copied to Clipboard