Hi,
You can even do like this:
private void Read_File(object Sender, EventArgs e)
{
string contentOfFileWithCommas = File.ReadAllText("C:\\commas.txt",Encoding.UTF8);
string contentOfFileWithoutCommas = contentOfFileWithCommas.Replace(",", " ");
File.WriteAllText("C:\\nocommas.txt",contentOfFileWithoutCommas,Encoding.UTF8);
}
Mark as Answer if satisfied.
Regards,
Shree M.
Kavya Shree Mandapalli
sailulakshmid-21627, if this helps please login to Mark As Answer. | Alert Moderator