Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Private Sub Form1_FormClosed(sender As Object, e As FormClosedEventArgs) Handles MyBase.FormClosed
- Dim Path As String = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "/TruckClicker"
- If (Not System.IO.Directory.Exists(Path)) Then
- System.IO.Directory.CreateDirectory(Path)
- End If
- Using outputFile As New System.IO.StreamWriter(Path & Convert.ToString("\data.txt"))
- outputFile.WriteLine(Clicks.ToString())
- outputFile.Dispose()
- End Using
- End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement