Hi VinayG,
Check this example. Now please take its reference and correct your code.
For accessing ResXResourceWriter you need to add System.Windows.Form library in your project form the .NET tab.
Code
C#
protected void Page_Load(object sender, EventArgs e)
{
using (System.IO.FileStream fs = new System.IO.FileStream(Server.MapPath("~/TestResource.resx"), System.IO.FileMode.Create))
{
using (System.Resources.ResXResourceWriter resx = new System.Resources.ResXResourceWriter(fs))
{
resx.AddResource("Key1", "Value1");
resx.AddResource("Key2", "Value2");
resx.AddResource("Key3", "Value3");
}
}
}
VB.Net
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
Using fs As IO.FileStream = New IO.FileStream(Server.MapPath("~/TestResource.resx"), IO.FileMode.Create)
Using resx As Resources.ResXResourceWriter = New Resources.ResXResourceWriter(fs)
resx.AddResource("Key1", "Value1")
resx.AddResource("Key2", "Value2")
resx.AddResource("Key3", "Value3")
End Using
End Using
End Sub
Screenshot

For more details refer the below link.
Working with .resx Files Programmatically