C# 如何从Visual Studio C.net创建一个文本文件(.txt),并禁用word wrap属性?

C# 如何从Visual Studio C.net创建一个文本文件(.txt),并禁用word wrap属性?,c#,.net,string,word-wrap,C#,.net,String,Word Wrap,如何从Visual Studio C.net创建一个文本文件.txt并禁用word wrap属性 实际上,我正在维护一个日志文件,其中一些值以表格形式存储,但表内容超出了行限制,我希望表值显示在一行中 有办法吗 谢谢你的回复 关于您在记事本中将Wrap一词与字符串混淆。。从txt文件中的C添加的字符串未被包装。。如果启用了WordWrap,则在记事本中看到它时可能会被包装 存储在txt文件中的字符串本身永远不会进行任何文字换行。。您没有任何换行字符\n仅用于新行 Word Wrap是任何文本编

如何从Visual Studio C.net创建一个文本文件.txt并禁用word wrap属性

实际上,我正在维护一个日志文件,其中一些值以表格形式存储,但表内容超出了行限制,我希望表值显示在一行中

有办法吗

谢谢你的回复


关于

您在记事本中将Wrap一词与字符串混淆。。从txt文件中的C添加的字符串未被包装。。如果启用了WordWrap,则在记事本中看到它时可能会被包装

存储在txt文件中的字符串本身永远不会进行任何文字换行。。您没有任何换行字符\n仅用于新行

Word Wrap是任何文本编辑器的一项功能,它与实际的字符串文本无关。以下是维基百科关于其含义的摘录

In text display, line wrap is the feature of continuing on a new line when a line is full, such that each line fits in the viewable window, allowing text to be read from top to bottom without any horizontal scrolling. Word wrap is the additional feature of most text editors, word processors, and web browsers, of breaking lines between and not within words, except when a single wordis longer than a line.
如果不想换行文本,请在编辑器中禁用它,如Notpad。您不能在StringText本身中执行任何操作,除非在需要时在某些字数之后添加\n

在记事本中将Wrap一词与字符串混淆。。从txt文件中的C添加的字符串未被包装。。如果启用了WordWrap,则在记事本中看到它时可能会被包装

存储在txt文件中的字符串本身永远不会进行任何文字换行。。您没有任何换行字符\n仅用于新行

Word Wrap是任何文本编辑器的一项功能,它与实际的字符串文本无关。以下是维基百科关于其含义的摘录

In text display, line wrap is the feature of continuing on a new line when a line is full, such that each line fits in the viewable window, allowing text to be read from top to bottom without any horizontal scrolling. Word wrap is the additional feature of most text editors, word processors, and web browsers, of breaking lines between and not within words, except when a single wordis longer than a line.
如果不想换行文本,请在编辑器中禁用它,如Notpad。您不能在StringText本身中执行任何操作,除非在需要时在某些字数之后添加\n

文本文件没有换行符属性。文本文件是文本文件。各种编辑器可以选择实现换行,以适应其显示窗口,或在换行前使用最大行长。这些功能中的一个或两个是否存在于编辑器中,以及/或者是否可配置,都是编辑器的属性。是要在visual studio中编辑日志文件,还是通过c创建日志文件?文本文件没有换行符属性。文本文件是文本文件。各种编辑器可以选择实现换行,以适应其显示窗口,或在换行前使用最大行长。这些功能中的一个或两个是否存在于编辑器中,以及/或者是否可配置,都是编辑器的属性。是要在visual studio中编辑日志文件,还是通过c创建日志文件?