I am retrieving data from a DB table using SqlDataReader
in ASP.net. I append the retrieved data in a string builder and after that, dump the contents of the string builder into a text file. My problem is that in that text file white spaces are showing up between one column and another ... How can I remove the excess white spaces from my text file?
Thanks in advance.
1. Text.Trim();
2. Text.Replace(" ", string.empty);