Project

General

Profile

$fgetc » History » Version 4

Per Amundsen, 02/22/2023 04:57 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 4 Per Amundsen
table(ktable).
12
|*Parameter*|*Description*|
13
| name<notextile>|</notextile>N | Name of the file or the Nth file. |
14 1 Per Amundsen
15
*Example*
16
17
<pre>
18
; Open a file.
19
/fopen Example Example.txt
20
21
; Add some text to the file.
22
/fwrite Example Hello World
23
24
; Read the next character.
25
//echo -ag Next char is: $fgetc(Example)
26
27
; Close the file.
28
/fclose Example
29
30
; Delete the file.
31
/remove Example
32
</pre>