Howto write rtf directly?

Dear "Logancapaldo",

thank you for your response.
Yes, I am using Windows, but I used Ruby under Cygwin and I write

file=File.open("my_file.rtf","w")
file.puts allmygarbledtext
file.close.

So the extension visible is *.rtf ....

Best regards,

Axel