Hello everyone!
Stuff like this makes me hate computers! Anyways, I'm again struggling with something relatively simple - or so i thought.
I have a sub:
Then, I have a sub that runs every minute, calling yet another sub, which calls this one. Before you say whoa! that's too many, I'll say that each of these subs has a different purpose.Code:Private Sub WriteToFile() Dim stream_writer As StreamWriter stream_writer = File.AppendText("Results.txt") stream_writer.WriteLine(strName) stream_writer.Close() End Sub
The whole problem is that the WriteToFile sub writes only once to a file! Instead of continously writing to the file every minute, it stops at the first line.
How can i achieve this?




Reply With Quote