mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
OP Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
/fopen [-n] <name> <filename>

Opens the specified file and assigns a name to it for later reference. The -n switch creates the file if it doesn't already exist.

I type
/fopen test sdhskjh.txt
and then sdhskjh.txt appears in my mIRC folder.

Unless I'm misreading that, it should only create the file if I specify -n.

Joined: Feb 2003
Posts: 307
T
Fjord artisan
Offline
Fjord artisan
T
Joined: Feb 2003
Posts: 307
you are right.
do you get any $feof and $ferr values?

Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
OP Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
both are 0

Joined: Aug 2003
Posts: 72
V
Babel fish
Offline
Babel fish
V
Joined: Aug 2003
Posts: 72
$ferr returns 1 if there is an error opening the file, ie: file is already in use, file is 'read-only', (maybe if file doesn't exists, but can't test it since there is a bug smile)

$feof return 1 if filepointer have reached the end of file..


Link Copied to Clipboard