From WikiChip
$fread Identifier - mIRC
< mirc‎ | identifiers

$fread returns the next $crlf delimited line from an open file in file handling.


Synopsis[edit]

$fread(N/name) returns the next line

$fread(N/name,M,&binvar) reads M bytes into the binvar

Parameters[edit]

  • N - The Nth handle to be used
  • name - The handle name to be used
  • M - if M is specified then you must specify a binary variable name as the third parameter, it reads M bytes into the binary variable
  • &binvar - the name of the binary variable

Properties[edit]

None

Example[edit]

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

Compatibility[edit]

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[edit]

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