Quote Originally Posted by kake_fisk
Ahh, i don't understand what wrong, all my code looks perfect...
vb Code:
  1. Imports System.IO
  2.  
  3. Public Class Form3
  4.  
  5.     Private Sub Form3_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
  6.         File.WriteAllText("notes.txt", RichTextBox1.Text)
  7.     End Sub
  8.  
  9.     Private Sub Form3_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  10.         If File.Exists("notes.txt") Then
  11.             Path.Combine(Application.StartupPath, "notes.txt")
  12.         End If
  13.     End Sub
  14. End Class
But it won't save now as it always did before...

The first sub is writing to a text file but the second is populating nothing