Project

General

Profile

$fgetc » History » Version 3

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

1 1 Per Amundsen
_Added in 1.9.0_
2
3
*$fgetc(name|N)*
4
5
Returns the next character from current position in an open file.
6
7 3 Per Amundsen
_See also [[/fopen]], [[/fclose]], [[/fwrite]], [[/fseek]], [[/flist]], [[$fread]], [[$feof]], [[$ferr]], [[$fopen]]._
8
9 1 Per Amundsen
*Parameters*
10
11 2 Per Amundsen
name|N - Name of the file or the Nth file.
12 1 Per Amundsen
13
*Example*
14
15
<pre>
16
; Open a file.
17
/fopen Example Example.txt
18
19
; Add some text to the file.
20
/fwrite Example Hello World
21
22
; Read the next character.
23
//echo -ag Next char is: $fgetc(Example)
24
25
; Close the file.
26
/fclose Example
27
28
; Delete the file.
29
/remove Example
30
</pre>