【发布时间】:2019-06-14 13:28:17
【问题描述】:
在创建 .txt 文件时,我必须在字符串中呈现一个特殊字符。特殊字符的代码是 "\x0B"。但是我们我尝试将它连接到一个字符串中,它给我的文本是原样的。你能告诉如何使用上面的代码呈现特殊字符吗?
String totalText = totalText + @"\x0B"+ @"Text seperated with the character";
File.WriteAllText(path + createFileName + ".txt", totalText);
【问题讨论】:
-
帮助我们帮助您 - 分享您的代码
-
完成,添加使用的代码
-
char c = '\x0B';