Project

General

Profile

$feof » History » Version 3

Per Amundsen, 02/22/2023 04:54 PM

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 2 Per Amundsen
_Can be used inside text without being surrounded by white spaces._
8
9 3 Per Amundsen
_See also [[/fopen]], [[/fclose]], [[/fwrite]], [[/fseek]], [[/flist]], [[$fread]], [[$feof]], [[$ferr]], [[$fopen]]._
10
11 1 Per Amundsen
*Example*
12
13
<pre>
14
; Open a file.
15
/fopen Example Example.txt
16
17
; Add some text to the file.
18
/fwrite Example Hello World
19
20
; Read the text.
21
//echo -ag $fread(Example)
22
23
; Close the file.
24
/fclose Example
25
26
; Delete the file.
27
/remove Example
28
29
; Print the status from $feof.
30
//echo -ag File $IIf($feof,was,was not) read to end
31
</pre>