Showing posts with label File Saving. Show all posts
Showing posts with label File Saving. Show all posts

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");