/ Published in: VB.NET
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
'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 = File.AppendText(FILENAME)
objStreamWriter.WriteLine(DateTime.Now.ToString() + " >> " + txt)
'Close the stream
End Sub
Comments
 Subscribe to comments
                    Subscribe to comments
                
                