I had a problem writing a tab delimited string to a txt file.
First line. Second line. nThird line.
First line./tSecond line./tThird line.
Below is my code where I pass the line to be written to the txt file:
string word1 = "FirstLine.";
string word2 = "SecondLine.";
string word3 = "ThirdLine.";
string line = word1 + "/t" + word2 + "/t" + word3;
System.IO.StreamWriter file = new System.IO.StreamWriter(fileName, true);
file.WriteLine(line);
file.Close();
source
share