| readChar |
(Stream stream) |
yoix.io |
| |
Returns an integer that represents the next character read from
stream,
or
-1
at the end-of-stream or when an error occurs.
| |
| Example: |
On a UNIX-like system the program,
import yoix.io.*;
File file;
int ch;
if ((file = open("/etc/passwd", "r")) != NULL) {
while ((ch = readChar(file)) != -1)
writeChar(stdout, ch);
close(file);
}
copies the system password file to standard output
one character at a time, so it is slow.
| | |
| Return: |
String
| | |
| See Also: |
read,
readLine,
readStream,
ready
|
|
Yoix is a registered trademark of AT&T Intellectual Property.
|