//Outputs file with different column headings public static void test3() { String fileName3R = @"C:\WFMCustomAccelerator\PB Accelerator Files\Test Files\TestFileR1.csv"; String fileName3W = @"C:\WFMCustomAccelerator\PB Accelerator Files\Test Files\TestFileW3.csv"; DelimitedFile df3 = new DelimitedFile(fileName3R, ","); Console.WriteLine("Reading File=" + fileName3R); readTestFile(df3); String headerFileNameBefore = @"C:\WFMCustomAccelerator\PB Accelerator Files\Test Files\TestFileH3B.csv"; File.WriteAllLines(headerFileNameBefore, df3.headersInOrder()); df3.replaceColName("Ticker", "Bloomberg Ticker"); df3.replaceColName(@"Long/Short", "LS"); df3.replaceColName("Investment", "Security"); String headerFileNameAfter = @"C:\WFMCustomAccelerator\PB Accelerator Files\Test Files\TestFileH3A.csv"; File.WriteAllLines(headerFileNameAfter, df3.headersInOrder()); //Console.WriteLine( getHeaders(df3.headersInOrder(), df3.delimiter) ); df3.fileName = fileName3W; writeTestFile(df3); Console.WriteLine(lastMsg); Console.ReadLine(); }