[VB.NET]文本处理问题 [英] [VB.NET]Text Processing Question

查看:67
本文介绍了[VB.NET]文本处理问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个CheckedBox列表,用于读取指定路径下的文件夹名称,并允许用户选择他们想要的文件夹。

I have got a CheckedBox List that reads folder names under a specified path and allows users to select folders they want.

当用户点击按钮时,我想要用于查找名为"xxx.cfg"的配置文件的应用程序在用户选择的文件夹中。

When the user clicks the button, I want the application to find a config file named "xxx.cfg" in the folders selected by the user.

在该cfg文件中会出现如下文本:

In that cfg file there will be texts like this:

[xxx.0]

name = yyy0

name=yyy0

icao = zzz0

icao=zzz0

[xxx.1]

name = yyy1

name=yyy1

icao = zzz1

icao=zzz1

......

我想在每个"名字"之后阅读文字。和"icao",并用 

I want to read the texts after every "name" and "icao", and write some texts like this with 

< name = yyy0,icao = zzz0>

<name=yyy0, icao=zzz0>

< name =写一些这样的文字yyy1,icao = zzz1>

<name=yyy1, icao=zzz1>

......

那我怎么做这项工作?谢谢!

So how can I make this work? Thanks!

推荐答案

您好

看起来很简单。

这所学校有效吗?

到目前为止,请出示代码。

Please show you code so far.


这篇关于[VB.NET]文本处理问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆