I'm trying to create a .txt file that will hold a handful of numbers. I want to be able to add them, then retrieve the sum with my program (or retrieve the numbers and add them via the program, whatever). Unfortunately, I haven't a clue how to accomplish this. Also, I'm not positive that what I have is correct so far. This is where I'm at atm:
Private Sub submitBtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) _
Handles submitBtn.Click
Dim runningTally As DialogResult = OpenFileDialog.ShowDialog
runningTally = Val(timeSpentTxt.Text)
'runningTally = runningTally + timeSpent
If runningTally = Windows.Forms.DialogResult.Cancel Then
Return
End If
output = New StreamWriter(fileName, True)
ouput.WriteLine(timeSpentTxt.Text)
'lifetime = lifetime + runningTally
End Sub