To read from a stream, you can use the fread() or fgets() functions. The fread() function reads a specified number of bytes from the stream, while fgets() reads until it encounters a newline character or reaches a specified number of bytes.