Is it possible to create a text file and log some info in WPF application when it is deployed as MSI installer and running on a client machine.
I tried creating a file using File.create etc. But the file is not getting created on client machine.
Thanks in advance.
using (FileStream stream = File.Create(@"c:\Log.txt"))
{
using (StreamWriter writer = new StreamWriter(stream))
{
writer.WriteLine("I can write to local disk.");
}
}