重写从txt文件收集的数据?
我有一个由垂直列表组成的 txt 文件。该列表包含 x 个数量的组,但标准是它们始终由三个实体组成。
示例如下:
PANNEL A
38
2440
解释为:
NAME
WIDTH
LENGTH
三个项目的列表(尽管列表可以包含 x 数量)等同于:
NEW BEAM
38
2440
WOOD
22
610
ITEM A
50
1220
我现在需要创建一个新的 txt 文件,其写法如下:
(“NEW BEAM” is “38” x “2440”)
(“WOOD” is “22” x “610”)
(“ITEM A” is “50” x “1220”)
我如何使用 VB.NET 执行此操作?
I have a txt file comprised of a vertical list. The list contains x-amount of groups but what is standard is that they are always made up three entities.
Example as follows:
PANNEL A
38
2440
Explained as:
NAME
WIDTH
LENGTH
A list of three items (though list can contain x-amounts) is identical to:
NEW BEAM
38
2440
WOOD
22
610
ITEM A
50
1220
I now need to create a new txt file, which is written as follows:
(“NEW BEAM” is “38” x “2440”)
(“WOOD” is “22” x “610”)
(“ITEM A” is “50” x “1220”)
How van I do this using VB.NET?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我的做法如下:
您可以通过以下方式调用此方法:
Here's how I'd go about it:
And you'd call this method by: