FileStream ostrm; StreamWriter strm; TextWriter txtWrt = Console.Out; ostrm = new FileStream(path + "\\Output.xls", FileMode.Truncate, FileAccess.ReadWrite); strm = new StreamWriter(ostrm); Console.SetOut(strm); Console.Write("Method" + "\n\t"); Console.Write("Sheet" + "\t"); Console.Write("Time" + "\t"); Console.Write("Type" + "\t"); Console.Write("Tab" + "\t"); Console.Write("Environment" + "\t"); Console.Write("Iteration" + "\t"); Console.Write("User" + "\t"); Console.Write("Module" + "\t"); Console.Write("Sheet" + "\t"); Console.WriteLine(); Console.SetOut(txtWrt);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)