Project

General

Profile

Actions

$feof » History » Revision 1

Revision 1/4 | Next »
Per Amundsen, 08/12/2015 08:49 AM


Added in 1.9.0

$feof

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

Example

; 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

Updated by Per Amundsen over 8 years ago · 1 revisions

Also available in: PDF HTML TXT