/ Published in: VB.NET
Expand |
Embed | Plain Text
Sub Log(ByVal txt As String) 'Open a file for writing Dim FILENAME As String = Server.MapPath("Log.txt") 'Get a StreamReader class that can be used to read the file Dim objStreamWriter As StreamWriter objStreamWriter.WriteLine(DateTime.Now.ToString() + " >> " + txt) 'Close the stream objStreamWriter.Close() End Sub
You need to login to post a comment.
