public function toFile($filename, array $config, $header = null)
    {
        $ini = $this->toString($config, $header);
        return File::put($filename, $ini);
    }
public function toFile($filename, array $config, $header = null)
    {
        $ini = $this->toString($config, $header);
        return File::put($filename, $ini);
    }
@param string $filename
@param array  $config
@param string $header

@return int