I have code that appends a logfile every time the program runs. The program is on a timer, so it restarts every 10 minutes and writes to a text file.
Dim FILENAME As String = "logfile.txt"
Dim objStreamWriter As StreamWriter
objStreamWriter.WriteLine("Text Line 1")
objStreamWriter.WriteLine("Text Line 2")
In debug mode, the logfile.txt is saved in the bin/debug folder
When i publish the application, I'm not sure where the logfile.txt file gets saved.
The file path is C:\Users\MyName\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Microsoft after I've installed the application, but the logfile isn't there.
Where would it be saved? I search the computer but it doesnt' turn up.
I hope this question makes sense.