Simplified reading from a file descriptor.