Chr(13)
Private Sub btnDataSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDataSave.Click Dim FilePath As String = "C:\Test\test.txt" Dim Data As String = Me.txtTitle.Text & Chr(13) & Me.txtData.Text & Chr(13) Dim sw As IO.StreamWriter Dim Encode As System.Text.Encoding Encode = System.Text.Encoding.GetEncoding("Shift-JIS") sw = New IO.StreamWriter(FilePath, True, Encode) sw.Write(Data) sw.Close() MsgBox("保存しました。", MsgBoxStyle.Information, "保存完了") End Sub