-1
我有正常工作的情況如下:輸出製表符分隔字符串文件
StreamWriter outputFile = new StreamWriter(@"C:\out.txt");
string header = "ProgramDate" + "," +
"ProgTime";
outputFile.WriteLine(header);
outputFile.Close();
,而不是分隔的逗號,我怎麼讓它製表符分隔。 或者我如何讓它製表符分隔開始?我在網上搜索,但無法找到答案。
替換 「」 帶有 「\ t」 的,因爲這是標籤的字符代碼。關於SO的大量示例 - 請參閱http://stackoverflow.com/questions/366124/inserting-a-tab-character-into-text-using-c-sharp – dash