Is there any performance and usage-difference between read and fread?

The goal of this program is to read a line from a file and load it into a buffer of a fixed size buf_len. If the line ends or the buffer is not big enough to store the line the program exits. int read_line(int file, char * buffer, size_t buf_len) { size_t total = 0;… Read More Is there any performance and usage-difference between read and fread?