header file: unistd.h
ssize_t read(int fd, void *buffer, size_t count);
header file: stdio.h
int _read(int fd, void *buffer, unsigned int count);
This function reads data from a given file.
The Windows and Unix versions of this function differ only in
name and the type of the return value; when porting, the easiest
way of dealing with dealing with the lack of an ssize_t type in
Windows is to either cast it as an int, or simply define it as an
int directly (with "#define ssize_t int" or similar).
Example of Use in Windows
For a complete example, please see the MSDN article.