Reads the specified number of bytes from a file into a buffer, beginning at the current position of the file pointer.
#include <io.h> int read (int handle, char *buffer, unsigned int count);
handle
buffer
count
After the read operation, the file pointer points to the next unread character.
In text mode, each <CR><LF> pair is replaced with a single <LF> character. Only the single <LF> character is counted in the return value. The replacement does not affect the file pointer.
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 3.0 | intime/rt/include/io.h | io.h | clib.lib |