From WikiChip
Difference between revisions of "mirc/identifiers/$feof"
< mirc‎ | identifiers

(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...")
 
m
 
Line 1: Line 1:
{{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
+
{{mirc title|$feof identifier}}'''$feof''' returns 1 if the end of the file was reached from the last file access attempt in any script, 0 otherwise.
  
  
Line 19: Line 19:
  
 
== See Also ==
 
== See Also ==
{{mIRC|$ferr}}
+
* {{mIRC|$ferr}}
{{mIRC|$fopen}}
+
* {{mIRC|$fopen}}
{{mIRC|$fread}}
+
* {{mIRC|$fread}}
{{mIRC|$fgetc}}
+
* {{mIRC|$fgetc}}
{{mIRC|/flist}}
+
* {{mIRC|/flist}}
{{mIRC|/fopen}}
+
* {{mIRC|/fopen}}
{{mIRC|/fclose}}
+
* {{mIRC|/fclose}}
{{mIRC|/fwrite}}
+
* {{mIRC|/fwrite}}
{{mIRC|/fseek}}
+
* {{mIRC|/fseek}}
 +
{{mIRC identifier list}}
  
 
+
[[Category:mIRC identifiers|feof]]
[[Category:mIRC identifiers|addtok]]
 

Latest revision as of 18:31, 22 September 2017

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


Synopsis[edit]

$feof

Paramters[edit]

None

Properties[edit]

None

Example[edit]

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

[Expand]
v · d · e mIRC identifier list