Mam problem z zapisaniem łańcucha rozdzielane tabulatora w pliku txt.Zapisz plik txt Ograniczony plik txt z C# .net
//This is the result I want:
First line. Second line. nThird line.
//But I'm getting this:
First line./tSecond line./tThird line.
Poniżej jest mój kod gdzie mogę przekazać łańcuch zostanie zapisany do pliku txt:
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();
Nie. Użyj "\ t". "\\ t" ucieka z ukośnika ... –
@EricJ. Absolutnie. Nie wiem, o czym myślałem – Habib