function rewind()
	{
		$filename = $this->getResource();

		if( fclose( $this->_fh ) === false ) {
			throw new MW_Container_Exception( sprintf( 'Unable to close file handle for %1$s', $filename ) );
		}

		if( ( $this->_fh = fopen( $filename, 'r' ) ) === false ) {
			throw new MW_Container_Exception( sprintf( 'Unable to open file %1$s', $filename ) );
		}

		$this->_position = 0;
		$this->_data = $this->_getData();
	}
function rewind()
	{
		$filename = $this->getResource();

		if( fclose( $this->_fh ) === false ) {
			throw new MW_Container_Exception( sprintf( 'Unable to close file handle for %1$s', $filename ) );
		}

		if( ( $this->_fh = fopen( $filename, 'r' ) ) === false ) {
			throw new MW_Container_Exception( sprintf( 'Unable to open file %1$s', $filename ) );
		}

		$this->_position = 0;
		$this->_data = $this->_getData();
	}
function rewind ( ) { $ filename = $ this -> getResource ( ) ; if ( fclose ( $ this -> _fh ) === false ) { throw new MW_Container_Exception ( sprintf ( 'Unable to close file handle for %1$s' , $ filename ) ) ; } if ( ( $ this -> _fh = fopen ( $ filename , 'r' ) ) === false ) { throw new MW_Container_Exception ( sprintf ( 'Unable to open file %1$s' , $ filename ) ) ; } $ this -> _position = 0 ; $ this -> _data = $ this -> _getData ( ) ; }
Rewinds the file pointer to the beginning.
Rewinds the file pointer to the beginning .