Problems with file saving

  • Thread starter Thread starter David Johnston
  • Start date Start date
D

David Johnston

I am converting to the .NET platform and I am starting with
C#. Just for exercise I'm writing a text editor and I am
having some problems with saving files. I am using a
single document interface system. I am just working with
plain text now but I was wondering what differences I would
have to make to save between .txt, .rtf, or even .doc if
possible. Thanks for any help you could give or examples
you could point me to . Thanks again.
 
Hi David,

David Johnston said:
I am converting to the .NET platform and I am starting with
C#. Just for exercise I'm writing a text editor and I am
having some problems with saving files. I am using a
single document interface system. I am just working with
plain text now but I was wondering what differences I would
have to make to save between .txt, .rtf, or even .doc if
possible. Thanks for any help you could give or examples
you could point me to . Thanks again.

The problem is to format the content.
While txt is trivial - plain text, rtf is formatted - you might use
RichTextBox for formatting it properly.
..doc, if you are talking Word is very difficult to write, partly because it
is not open to public and partly because it uses some Windows APIs to format
the file. If you want the easy way, you might look at Word automation
http://support.microsoft.com/default.aspx?scid=kb;en-us;316384&Product=vcSnet
 
Back
Top