I am creating a simple program composed on one windows form. The user will navigate the system through a series of buttons. What Im having problems with is creating a log of the users actions. I would like to create a text file that says when they click each button. I tried something like this:
Dim sw As IO.StreamWriter = IO.File.CreateText("user_input.txt")
sw.WriteLine("ButtonA: " & TimeOfDay)
sw.Close()
However, each time it did this, the text file would clear and only the most recent button clicked would appear on the text file.
Ive also tried using appendtext, but I get the same problem. Is what Im trying to do even possible? Thanks in advance for your help.
Dim sw As IO.StreamWriter = IO.File.CreateText("user_input.txt")
sw.WriteLine("ButtonA: " & TimeOfDay)
sw.Close()
However, each time it did this, the text file would clear and only the most recent button clicked would appear on the text file.
Ive also tried using appendtext, but I get the same problem. Is what Im trying to do even possible? Thanks in advance for your help.