From WikiChip
$fopen Identifier - mIRC
< mirc‎ | identifiers
Revision as of 08:32, 18 October 2017 by 83.204.221.221 (talk) (Created page with "{{mirc title|$fopen Identifier}}'''$fopen''' returns information about an open file in file handling == Synopsis == <pre>$fopen(N/name)</pre> == Parameters == * '''N''' - T...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

$fopen returns information about an open file in file handling


Synopsis

$fopen(N/name)

Parameters

  • N - The Nth handle to be used
  • name - The handle name to be used

Properties

  • .fname - returns the complete filename opened
  • .pos - returns the position of the pointer in the file
  • .eof - returns 1 if the end of the file was reached, 0 otherwise
  • .err - returns 0 if an error occured from the last file access

Example

//fopen test $qt($mircini) | echo -a > $fread(test) $fopen(test).pos | fclose test

Compatibility

Added: mIRC v6.1
Added on: 29 Aug 2003
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See Also

/fclose /fseek /flist /fwrite $fread $feof $fgetc $ferr