Creating a file for debugging in VB
It might not be possible to debug directly in VB at times. Therefore it can be very helpful to have some sort of a log that stores helpful information for debugging purposes. The following codes create a file named "Test.txt" on C drive and write some text into it:
Open "c:\Test.txt" For Append As #1
Write #1, "Some text"
Close #1
