Imports System.IO Imports System.Runtime.CompilerServices Module Eazy Public Sub SaveAsTextfile(rtb As RichTextBox, strPath As String) File.WriteAllLines(strPath, rtb.Lines) End Sub End Module