mIRC Home    About    Download    Register    News    Help

Print Thread
C
Christian2501
Christian2501
C
I have a .txt file in the main directory of mIRC but when I check the file with //echo -a $exists(myfile.txt) it returns $false and because of that the $read identifier doesn't work.

I also checked that the name was well written

¿why is this happening to me?

Thanks in advance.

Joined: Jan 2004
Posts: 1,330
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,330
Which directory? Program files? Use $mircdir instead.

Joined: May 2015
Posts: 245
S
Fjord artisan
Offline
Fjord artisan
S
Joined: May 2015
Posts: 245
Or try /write myfile.txt sometext

Joined: Feb 2015
Posts: 19
Y
Pikka bird
Offline
Pikka bird
Y
Joined: Feb 2015
Posts: 19
Make sure the myfile.txt is in the same directory as mIRC.exe (same as $mircdir).
If it is not, you should provide the fullpath in $exists().

N
nanito
nanito
N
in the status windows write:
Code:
//echo -a $mircdir


that's your main mirc directory. save your file overthere.


Link Copied to Clipboard