read()

This function reads from the specified file or pipe whose descriptor is supplied in the method. Here is its syntax:

read(int fp, void *buf, size_t n);

It tries to read up to n number of bytes from a file that's being pointed to by a descriptor, fp. The bytes that are read are then assigned to the buffer, buf.