mIRC Home    About    Download    Register    News    Help

Print Thread
Major Problem with $fopen() #53176 09/10/03 10:42 PM
Joined: Oct 2003
Posts: 10
T
topscriptz Offline OP
Pikka bird
OP Offline
Pikka bird
T
Joined: Oct 2003
Posts: 10
simple problem, you want to check if a file has been /fopen 'd because the script halts if you try to open an already open file.

Problem is all the identifiers regarding the /fopen commands will halt when a non existing handle name is given. So writing a script with /fopen is useless. A Control-Break can prevent a script from closing the fopen file. And there is no way to check if it is open.

* Invalid parameters: $fopen


Re: Major Problem with $fopen() #53177 09/10/03 11:46 PM
Joined: Feb 2003
Posts: 810
C
cold Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 810
Yeah frown. In the meanwhile, I'm using /fopen adding $ticks to some names here and there and never previously checking their existence.


* cold edits his posts 24/7
Re: Major Problem with $fopen() #53178 10/10/03 12:45 AM
Joined: Oct 2003
Posts: 10
T
topscriptz Offline OP
Pikka bird
OP Offline
Pikka bird
T
Joined: Oct 2003
Posts: 10
I found a work around to /fclose and all you gotta do is use a wildcard name. Its not very convenient but it can work crazy