Checking if a file exists - 27/12/02 05:35 AM
Here's the code
on 1:TEXT:~test:#: {
if ($exists(c:\mirc\files\ $+ $nick $+ .txt) == $true) { msg $chan Exists } | else { msg $chan does not exist }
}
It always returns "does not exist". However, when I change $+ $nick $+ .txt to cyter.txt, it returns "Exists". I added a message to show what it was getting in the exist, and it told me c:\mirc\files\cyter.txt Any ideas what is wrong? I've asked several other people, but they couldn't figure out what was wrong.
on 1:TEXT:~test:#: {
if ($exists(c:\mirc\files\ $+ $nick $+ .txt) == $true) { msg $chan Exists } | else { msg $chan does not exist }
}
It always returns "does not exist". However, when I change $+ $nick $+ .txt to cyter.txt, it returns "Exists". I added a message to show what it was getting in the exist, and it told me c:\mirc\files\cyter.txt Any ideas what is wrong? I've asked several other people, but they couldn't figure out what was wrong.