读取一个INI文件并加载到组合框中 [英] read a INI file and load into combo box

查看:85
本文介绍了读取一个INI文件并加载到组合框中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在尝试读取ini文件并将其显示在组合框中...谁能帮帮我...

Hello everyone,

I am trying to read ini files and display them into combo box... can any one help me out...

thanks in advance..

推荐答案

如果您正在读取INI文件的内容,则可以简单地使用File.ReadAllLines [
If you''re reading the contents of an INI file, you could simply use File.ReadAllLines [^] to get the contents of an INI file and then place the relevant data in the combo box


如果您想枚举文件或文件夹,请在此处查看: http: //msdn.microsoft.com/zh-CN/library/dd997370.aspx [
If you would like to enumarate files or folders, take a look here: http://msdn.microsoft.com/en-us/library/dd997370.aspx[^]


这篇关于读取一个INI文件并加载到组合框中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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