Hello,
I made a logs.txt to see how many times user connects to my application, i saved it in .txt file (On my pc)
But i want to do the same thing to a file (log.txt) on webserver
I made a logs.txt to see how many times user connects to my application, i saved it in .txt file (On my pc)
But i want to do the same thing to a file (log.txt) on webserver
Code
/*
FileStream stream = null;
string fileName = @"E:/logs.txt";
stream = new FileStream(fileName, FileMode.OpenOrCreate);
using (StreamWriter writer = new StreamWriter(stream, Encoding.UTF8)) ;
try
{
using (var writer = File.AppendText(fileName))
{
writer.WriteLine(welcome.Text);
}
}
catch (Exception exp)
{
Console.Write(exp.Message);
}
*/


![[Image: Syr3DlV.png]](https://i.imgur.com/Syr3DlV.png)

