Project

General

Profile

$feof » History » Revision 3

Revision 2 (Per Amundsen, 01/07/2019 05:38 PM) → Revision 3/4 (Per Amundsen, 02/22/2023 04:54 PM)

_Added in 1.9.0_ 

 *$feof* 

 Returns [[$true]] if end of file was reached during the last file access attempt, otherwise [[$false]]. 

 _Can be used inside text without being surrounded by white spaces._ 

 _See also [[/fopen]], [[/fclose]], [[/fwrite]], [[/fseek]], [[/flist]], [[$fread]], [[$feof]], [[$ferr]], [[$fopen]]._ 

 *Example* 

 <pre> 
 ; Open a file. 
 /fopen Example Example.txt 

 ; Add some text to the file. 
 /fwrite Example Hello World 

 ; Read the text. 
 //echo -ag $fread(Example) 

 ; Close the file. 
 /fclose Example 

 ; Delete the file. 
 /remove Example 

 ; Print the status from $feof. 
 //echo -ag File $IIf($feof,was,was not) read to end 
 </pre>