Function that returns a line read in a file descriptor.