What do you want to save?
Add Code snippet
New code examples
-
C# 2021-09-21 21:22:04
c# create log file
From the performance point of view your solution is not optimal. Every time you add another log entry with +=, the whole string is copied to another place in memory. I would recommend using StringBuilder instead: StringBuilder sb = new StringBuilder(); .... Add solution