<!--
{
  "documentType" : "article",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/FileHandle/FileHandle-Implementations",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "FileHandle Implementations"
}
-->

# FileHandle Implementations

## Topics

### Initializers

[`convenience init(forReadingFromURL: URL) throws`](/documentation/Foundation/FileHandle/init(forReadingFromURL:))

Returns a file handle initialized for reading the file, device, or named socket at the specified URL.

[`convenience init(forUpdatingURL: URL) throws`](/documentation/Foundation/FileHandle/init(forUpdatingURL:))

Returns a file handle initialized for reading and writing to the file, device, or named socket at the specified URL.

[`convenience init(forWritingToURL: URL) throws`](/documentation/Foundation/FileHandle/init(forWritingToURL:))

Returns a file handle initialized for writing to the file, device, or named socket at the specified URL.

---

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)