code:
'This will write to the text file
Open <Path Of File> for Append As #1
Print #1, Text1.Text
Close #1
'This will read the text file
Dim strTextFile As String
Open <Path Of File> for Input as #1
Do Until EOF(1)
Input#1,strTextFile
Text1.Text=Text1.Text & strTextFile & vbnewline
Loop
Close #1
'This will clear the text file
Open <Path Of File> For Output As #1
Close #1
'OR
Kill <Path Of File>
It is easiest to use the vb Function App.Path & "\Whatever.txt"
That means that the text file you are looking for is in the same place as the exe, its a lot easier then specifing an exact path because what happens if they install the application to another place