public void Main()
{
System.IO.StreamReader sr = new System.IO.StreamReader(@"C:\Users\Reza\Downloads\test(2).csv");
string str1=(char)34+","+(char)34;
string str2=(char)34+"|"+(char)34;
string strContent = sr.ReadToEnd().Replace(str1, str2);
sr.Close();
sr.Dispose();
System.IO.StreamWriter sw = new System.IO.StreamWriter(@"C:\Users\Reza\Downloads\test(2).csv",false);
sw.Write(strContent);
sw.Flush();
sw.Close();
sw.Dispose();
// TODO: Add your code here
Dts.TaskResult = (int)ScriptResults.Success;
}
|