I have a program that I want to open a file and then save it as a different type (i.e. open a .txt file and save it as a RTF). How can I do this programatically?
I have a program that I want to open a file and then save it as a different type (i.e. open a .txt file and save it as a RTF). How can I do this programatically?
Open the text file and read the entire contents into a string. Create a
RichTextBox control, set the text of it to the string and then use the
RichTextBox.SaveFile() method to dump it out in RTF format.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.