webform, vb.net 如何生成.log文件?
我现在这样:
Dim LogName As String
LogName = Format(Now, "yyyyMMddhhmmss").ToString + ".log"
Dim Sw As StreamWriter = file.CreateText(Path+ LogName)
Sw.WriteLine("5")
Sw.Close()
生成的文件名是:20041222123020,
而不是我想要的:20041222123020.log
如何解决这个问题?
谢谢。