---
title: "readRTFD(fromFile:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstext/readrtfd(fromfile:)"
---

# readRTFD(fromFile:)

Attempts to read the RTFD file at the specified path.

## Declaration

```swift
func readRTFD(fromFile path: String) -> Bool
```

## Return Value

Return Value true if successful; otherwise, false.

## Discussion

Discussion path should be the path for an .rtf file or an .rtfd file wrapper, not for the RTF file within an .rtfd file wrapper.

## See Also

### Reading and writing RTF files

- [writeRTFD(toFile:atomically:)](appkit/nstext/writertfd(tofile:atomically:).md)
- [rtfd(from:)](appkit/nstext/rtfd(from:).md)
- [rtf(from:)](appkit/nstext/rtf(from:).md)
