bcm
Well-known member
- Joined
- Aug 13, 2007
- Messages
- 56
- Programming Experience
- Beginner
I want to show the error occured, date, error description in a text file.
Following is vb code. Can any one tell me how to write it in vb.net?

Following is vb code. Can any one tell me how to write it in vb.net?
VB.NET:
Open App.Path & "\ErrorLog" & Replace(Date, "/", "_") & ".txt" For Append As #1
Write #1, "Error in News update Exe:- Form Load Function ---" & Err.Description & "---" & Time
Write #1, "--------------------------------"
Close #1
Last edited by a moderator: