I want to write contents into a text file from a DatagridView in my application. In my text file, I would like to follow a format like
Column1 Column2 Column3
[Cell1] [Cell2] [Cell3]
[Cell1] [Cell2] [Cell3]
[Cell1] [Cell2] [Cell3]
and so on in a tabular format. How do I efficiently do that as you see I'm bothered about the locations of text as well to bring about a tabular format in a text file (in Notepad).
Should I use char[] but I feel it might not be efficient. Pl guide with an efficient solution.