basic.%fgetc
Gets a character from a stream.
Syntax
variable=%fgetc( (char*)stream )
Description
returns the next character from the named input 'stream'.
Note that the character is returned as a number. Normal usage would override the type (see example below). The Unix 'getc()' and 'getchar()' cannot be used because they are macros, rather than functions.
Example
c=(char)%fgetc( (char*)strm )
crt c
Note the character type casting to override the default (int) type.
See Also
User Comments
What do you think?
Share your experience or ask a question by using the form below.
Login to leave your comments.
