VS 2010 Save Text File To The Current User PathMay 9, 2011
I am developing an application that will call to the current user path so that a text file can be saved. I have seen a few forum threads that call to the current user path but I have been unsuccessful in making it work. Id like to try and save a text file, lets say 'test.txt' to 'C:Users(current user)My Documents' [URL] The above link has a way of calling the current user name, but when I publish the application, all it does is call to 'C:UsersMy Documents' and ultimately does not work. I have searched multiple terms and about 20 pages deep into google each time.