PiPHP\GPIO\FileSystem\FileSystem::putContents PHP Method

putContents() public method

public putContents ( $path, $buffer )
    public function putContents($path, $buffer)
    {
        $stream = $this->open($path, 'w');
        $bytesWritten = @fwrite($stream, $buffer);
        fclose($stream);
        $this->exceptionIfFalse($bytesWritten);
        return $bytesWritten;
    }