<!--
{
  "documentType" : "article",
  "framework" : "CoreFoundation",
  "identifier" : "/documentation/CoreFoundation/core-foundation-url-access-utilities",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Core Foundation URL Access Utilities"
}
-->

# Core Foundation URL Access Utilities

## Overview

Core Foundation URL Access Utilities give you convenient system-independent methods of creating, reading, updating, or deleting a URL resource.

Given a [`CFURL`](/documentation/CoreFoundation/CFURL) object that holds either a file or http URL, you can read the resource’s data with the [`CFURLCreateDataAndPropertiesFromResource(_:_:_:_:_:_:)`](/documentation/CoreFoundation/CFURLCreateDataAndPropertiesFromResource(_:_:_:_:_:_:)) function. You can write data to the URL resource, possibly creating a new file, with the [`CFURLWriteDataAndPropertiesToResource(_:_:_:_:)`](/documentation/CoreFoundation/CFURLWriteDataAndPropertiesToResource(_:_:_:_:)) function. Finally, you can destroy, or delete, the resource pointed to by the URL with the [`CFURLDestroyResource(_:_:)`](/documentation/CoreFoundation/CFURLDestroyResource(_:_:)) function.

## Topics

### Core Foundation URL Access Utilities Miscellaneous Functions

[`CFURLCreateDataAndPropertiesFromResource`](/documentation/CoreFoundation/CFURLCreateDataAndPropertiesFromResource(_:_:_:_:_:_:))

Loads the data and properties referred to by a given URL.

[`CFURLCreatePropertyFromResource`](/documentation/CoreFoundation/CFURLCreatePropertyFromResource(_:_:_:_:))

Returns a given property specified by a given URL and property string.

[`CFURLDestroyResource`](/documentation/CoreFoundation/CFURLDestroyResource(_:_:))

Destroys a resource indicated by a given URL.

[`CFURLWriteDataAndPropertiesToResource`](/documentation/CoreFoundation/CFURLWriteDataAndPropertiesToResource(_:_:_:_:))

Writes the given data and properties to a given URL.

### Constants

[`CFURLError`](/documentation/CoreFoundation/CFURLError)

`CFURL` error codes.

[File URL Properties](/documentation/CoreFoundation/file-url-properties)

Properties for file URL resources.

[HTTP URL Properties](/documentation/CoreFoundation/http-url-properties)

Properties for HTTP URL resources.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)