<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NotificationCenter/MessageIdentifier/readToEndOfFileCompletion",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:So20NSNotificationCenterC10FoundationE17MessageIdentifierPAcbCE04BasedE0Vy_So12NSFileHandleCACE025ReadToEndOfFileCompletionD0VGRszrlE04readjklmN0ALvpZ"
  },
  "title" : "readToEndOfFileCompletion"
}
-->

# readToEndOfFileCompletion

An identifier for a message about a file handle having reached the end of a file or communication channel.

```
static var readToEndOfFileCompletion: NotificationCenter.BaseMessageIdentifier<FileHandle.ReadToEndOfFileCompletionMessage> { get }
```

## Discussion

Use this identifier with [`NotificationCenter`](/documentation/Foundation/NotificationCenter)’s `addObserver(of:for:using:)` or `messages(of:for:bufferSize:)` methods to observe messages of type [`FileHandle.ReadToEndOfFileCompletionMessage`](/documentation/Foundation/FileHandle/ReadToEndOfFileCompletionMessage).

---

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)