$fgetc » History » Version 2
Per Amundsen, 08/12/2015 08:54 AM
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 | *Parameters* |
||
8 | |||
9 | 2 | Per Amundsen | name|N - Name of the file or the Nth file. |
10 | 1 | Per Amundsen | |
11 | *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 next character. |
||
21 | //echo -ag Next char is: $fgetc(Example) |
||
22 | |||
23 | ; Close the file. |
||
24 | /fclose Example |
||
25 | |||
26 | ; Delete the file. |
||
27 | /remove Example |
||
28 | </pre> |