code for convert the space delimited to comma delimited in text file

Posted by sailulakshmid-21627 under ASP.NET on 6/19/2013 | Points: 10 | Views : 599 | Status : [Member] | Replies : 1
code for convert the space delimited to comma delimited in text file by using asp.net with example




Responses

Posted by: Kmandapalli on: 6/19/2013 [Member] Silver | Points: 25

Up
0
Down

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

Login to post response