---
title: NSFileHandleReadToEndOfFileCompletion
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/nsnotification/name-swift.struct/nsfilehandlereadtoendoffilecompletion
---

# NSFileHandleReadToEndOfFileCompletion

Posted when the file handle reads all data in the file or, in a communications channel, until the other process signals the end of data.

## Declaration

```swift
static let NSFileHandleReadToEndOfFileCompletion: NSNotification.Name
```

## Discussion

Discussion It makes the data available to observers by putting it in the userInfo dictionary. To cause the posting of this notification, you must send either readToEndOfFileInBackgroundAndNotify() or readToEndOfFileInBackgroundAndNotify(forModes:) to an appropriate NSFileHandle object. The notification object is the NSFileHandle object that sent the notification. The userInfo dictionary contains the following information:  |   |   |

## See Also

### Working with notifications

- [NSFileHandleConnectionAccepted](foundation/nsnotification/name-swift.struct/nsfilehandleconnectionaccepted.md)
- [NSFileHandleDataAvailable](foundation/nsnotification/name-swift.struct/nsfilehandledataavailable.md)
- [readCompletionNotification](foundation/filehandle/readcompletionnotification.md)
