public function set($string)
    {
        $this->clear();

        fwrite($this->stream, $string);
        rewind($this->stream);
    }
public function set($string)
    {
        $this->clear();

        fwrite($this->stream, $string);
        rewind($this->stream);
    }
public function set ( $ string ) { $ this -> clear ( ) ; fwrite ( $ this -> stream , $ string ) ; rewind ( $ this -> stream ) ; }
Sets the string to read from.

@param string $string The string to read from.
Sets the string to read from .