Hello I'm building a small program like notepad and wanted to know how to make it save and load a file

Public Class Form1

    Private Sub btnClear_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClear.Click
        txtNotes.Text = ""
    End Sub

    Private Sub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSave.Click

    End Sub

    Private Sub btnLoad_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLoad.Click
        ofdNotes.OpenFile()
    End Sub
End Class

I don't know how to properly address OpenFileDialog and LoadFileDialog, so i called it ofdNotes and lfdNotes.

This question has already been answered. Start a new discussion instead.