vb to vb.net
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????
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
:'(
bcm
Junior Poster in Training
64 posts since Aug 2007
Reputation Points: 18
Solved Threads: 0
Learn how to:-
-Open a file for writing
-Write to a file
-Use string.replace to replace "/" with "_"
-Close the file
iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439