Hi aginell4life .
Please refer below sample code.
Namespace
C#
using System.IO;
VB.Net
Imports System.IO
CODE
C#
private void OnRead(object sender, EventArgs e)
{
string filePath = @"D:\Sample.txt";
string text = File.ReadAllText(filePath);
string header = "Customers\r\n==============\r\n";
File.WriteAllText(@"D:\Sample1.txt", header + text);
}
VB.Net
Private Sub OnRead(ByVal sender As Object, ByVal e As EventArgs)
Dim filePath As String = "D:\Sample.txt"
Dim text As String = File.ReadAllText(filePath)
Dim header As String = "Customers" & vbCrLf & "==============" & vbCrLf
File.WriteAllText("D:\Sample1.txt", header & text)
End Sub