9 May 2014

Saving a file in a specified folder inside my project using c#



var path = String.Format("{0}LogFiles\\Logdata.txt", AppDomain.CurrentDomain.BaseDirectory);

 oStreamWriter = new StreamWriter(path, true);

 oStreamWriter.WriteLine("Your text");


No comments:

Post a Comment