I want to create log file in the format (Log + datetime.Now).txt in my console application.
For the first status that i want to log, I want to create this log file.
I need to keep appending this file with all the latest status messages(around 50 to 60 messages) within a timespan of 10 to 20 min.
At the same time, in this timeframe, if the user opens this file, he should be able to open it freely.
Any code sample would be appreciated.
Thanks
1 Answer