I am working on C# in Win 7.
I need to print to a .txt file by Streamwriter.
StreamWriter outputfile = new StreamWriter(MYPATH, true);
outputfile.Write(String.Format(WIDTH_1 + Constants.WIDTH_1, item1 + " " + subitem + "(ave.)" , item2 + " "+ subitem + "(dev.)"));
Here, WIDTH_1 is "{0,30}", WIDTH_2 is "{1,30}". item2 and item1 are all strings. subitme is string.
When I open it in EXCEL 2012, all columns are in one cell.
I need to print each column in a distinct cell.
Any help would be appreciated.
Thanks