From WikiChip
$feof Identifier - mIRC
< mirc‎ | identifiers
Revision as of 15:46, 21 September 2017 by 83.204.218.38 (talk) (Created page with "{{mirc title|$feof Identifier}}'''$feof''' return 1 if the end of the file was reached from the last file access attempt in any script, 0 otherwise == Synopsis == <pre>$feof...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

$feof return 1 if the end of the file was reached from the last file access attempt in any script, 0 otherwise


Synopsis

$feof

Paramters

None

Properties

None

Example

//write -c test.txt test | fopen test test.txt | echo -a $fread(test) | echo -a $feof | echo -a > $fread(test) | echo -a $feof | fclose test | remove test.txt

Note that when reading a file line by line with $fread, you need one extra evaluation so that $feof is set to 1

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

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