Project

General

Profile

$fgetc » History » Revision 3

Revision 2 (Per Amundsen, 08/12/2015 08:54 AM) → Revision 3/4 (Per Amundsen, 02/22/2023 04:54 PM)

_Added in 1.9.0_ 

 *$fgetc(name|N)* 

 Returns the next character from current position in an open file. 

 _See also [[/fopen]], [[/fclose]], [[/fwrite]], [[/fseek]], [[/flist]], [[$fread]], [[$feof]], [[$ferr]], [[$fopen]]._ 

 *Parameters* 

 name|N - Name of the file or the Nth file. 

 *Example* 

 <pre> 
 ; Open a file. 
 /fopen Example Example.txt 

 ; Add some text to the file. 
 /fwrite Example Hello World 

 ; Read the next character. 
 //echo -ag Next char is: $fgetc(Example) 

 ; Close the file. 
 /fclose Example 

 ; Delete the file. 
 /remove Example 
 </pre>