Recently, I had a brief stint with RTF (Rich Text Format)
files. I had to write an RTF file
and send an RTF file as attachment in mail. Initially it was a pain to understand the RTF
file format. Its header
part was apparently the most confusing part. But when I had some
understanding of the header,
the remaining task was not that difficult. Here, I am not going to
provide you with codes for
writing an RTF, but I'll help you understand how this can be achieved.
Once this is clear, you
can write your own class to write an RTF, or for that matter convert a
file to RTF.