如何写一个"(双引号)到使用WriteLine的文件? [英] How to write a " (doublequotes) to a file using WriteLine?
本文介绍了如何写一个"(双引号)到使用WriteLine的文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要将此行写到文件中:
复制"stores.txt的副本" stores.txt
请帮忙.
I need to write this line to a file:
copy "Copy of stores.txt" stores.txt
Please, help.
推荐答案
使用:
Use:
"copy \"Copy of stores.txt\" stores.txt"
这可能对您有帮助: http://msdn.microsoft.com/zh-CN /library/h21280bw%28VS.80%29.aspx [ ^ ]
That might help you: http://msdn.microsoft.com/en-us/library/h21280bw%28VS.80%29.aspx[^]
另一个选项:
another option:
...WriteLine(@"""Copy of stores.txt""");
这篇关于如何写一个"(双引号)到使用WriteLine的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文