I changed the subject of your thread to better match your question.
The function you show appears to be correct, however, if you want to load RTF files and keep the formatting, the TEXT_FILE function should be the outermost function.
Also, keep in mind that you may need to supply the full path.
Eample:
TEXT_FILE(IF([field] = "x", "","path\text.rtf"))