Your best bet is to create an appex module, which lets you use the share module to open the file.

You could use pyrtf to read the file, or there are some objc methods that can convert rtf to text.

it might help if you describe what app you are starting from, and whether you just need text extracted, or care about formatting?