Save To Folder Fix

Mar 14, 2009 at 2:30 AM

Hi, I would first like to thank you for the program. I like it a lot. But I found a small issue: If you want to save to a specific folder, the application is missing a backslash between the last folder and the filename (test.txt). So if I want to save the file as c:\temp\test.txt I end up getting the file saved off as c:\temptest.txt . Normally this isn't a big issue, but if you are on a work computer where you are limited to write to specific directories then it breaks the application.

Not a big issue though. I downloaded the project and have a very simple fix. Change line 154 of Form1.cs to:

FileStream fs = new FileStream(Path.Combine(label2.Text, "test.txt"), FileMode.OpenOrCreate, FileAccess.Write);

I've tested and it works both on the drive's root and within a folder.

Mar 14, 2009 at 9:22 AM
Hello Katsushiro,

I am glad you liked the program.

Thanks for pointing that out. I will update the code and release it.

If you find any other issues, please let me know and we could sort it out.

Thanks again.