Question on saving/loading rtf files

Hey all, newbie learning C# in a class and decided to work on a notepad like program for fun. Most features work in the program, but this is one I'm stuck at. I am able to save and open txt and rtf files, but I am having a problem where if I try to open an rtf file and save it I get an IOException because it's already being accessed. Can anyone help me fix this? It's not like IO.FileStream where you close access when you're done.

Here's a pastebin with my open and save methods.

by jcl007 via /r/csharp

Leave a Reply