Project

General

Profile

$feof » History » Version 1

Per Amundsen, 08/12/2015 08:49 AM

1 1 Per Amundsen
_Added in 1.9.0_
2
3
*$feof*
4
5
Returns [[$true]] if end of file was reached during the last file access attempt, otherwise [[$false]].
6
7
*Example*
8
9
<pre>
10
; Open a file.
11
/fopen Example Example.txt
12
13
; Add some text to the file.
14
/fwrite Example Hello World
15
16
; Read the text.
17
//echo -ag $fread(Example)
18
19
; Close the file.
20
/fclose Example
21
22
; Delete the file.
23
/remove Example
24
25
; Print the status from $feof.
26
//echo -ag File $IIf($feof,was,was not) read to end
27
</pre>