是否有一个通用类来编写结构化文本文件?

发布于 2024-08-29 16:22:05 字数 345 浏览 0 评论 0 原文

我有几个项目需要编写结构化文本文件,其中一些具有固定大小的字段,其他由字符分隔。

是否有一个 .net 类可以用于此目的?

我知道有一个“Microsoft.VisualBasic.FileIO.TextFieldParser”对于读取文本文件很有用,我实际上正在寻找一个“”Microsoft.VisualBasic.FileIO.TextFieldWriter”

相关:使用 .NET 增强阅读和解析文本文件的替代方案

I have several projects that need to write structured Textfiles, some with fixed size fields, other delimited by characters.

Is there a .net class that could be used for that?

I know there is a "Microsoft.VisualBasic.FileIO.TextFieldParser" that is useful for reading textfiles, i am actually searching for a ""Microsoft.VisualBasic.FileIO.TextFieldWriter"

Related: Alternatives for enhanced reading and parsing text files using .NET

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

离不开的别离 2024-09-05 16:22:05

文件助手

易于使用的 .NET FileHelpers
用 C# 编写的库用于读/写
固定长度或分隔的数据
文件或流。

FileHelpers

The FileHelpers easy to use .NET
library written in C# to read/write
data from fixed length or delimited
files or streams.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文