mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2015
Posts: 5
C
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
C
Joined: Dec 2015
Posts: 5
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,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
Which directory? Program files? Use $mircdir instead.

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


Dont give a fish - teach to fish!
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().

Joined: Nov 2015
Posts: 14
N
Pikka bird
Offline
Pikka bird
N
Joined: Nov 2015
Posts: 14
in the status windows write:
Code:
//echo -a $mircdir


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


Link Copied to Clipboard