C#: Write a .rtf file

Is there a way to convert a string into a new .rtf file using C#? Nothing fancy just text and paragraphs.

I am currently writing it to a .txt file but the program would be much more accesible if it produced .rtf. Is this possible with unity?
I’m not a beginner with coding but I do have some gaps in my knowledge as I tend to only learn what I need to for different projects so if you know a solution I’d be massively greatful.

Unity uses mono/.net.

There are many libraries out there for mono/.net to create rich text files. Pick one that you like, and target .net 3.5 or earlier, and have at it.

As I said I have some big gaps in my knowledge so a little more detail would be appreciated :slight_smile: