如何在C#中只使用一个项目文件打开所有Txt文件 [英] How Do I Open All Txt Files With Only One Project Files In C#

查看:66
本文介绍了如何在C#中只使用一个项目文件打开所有Txt文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用一个项目文件打开所有文本文件,例如我只需要点击一个项目文件,我的应用程序必须根据名称将所有txt(csv)文件打开到它们的选项卡中。 ..

i实现了所有功能但我在应用这个部分时遇到了问题......

任何帮助都会很明显...

谢谢。

Hi, i want to open all the text files with just one project file, for e.g i will just click only 1 project file and my application will have to open all txt (csv) files into their tabs according to there name...
i implemented all the functionality but i do have problem in applying this part...
any help will be appreciable...
Thanks.

推荐答案

你用循环来做。获取所有文件的列表,然后通过列表打开每个文件并在任何地方显示它。有什么问题?
You do it with a loop. Get a list of all the files then go through the list opening each one and displaying it wherever you want. What's the problem?


这篇关于如何在C#中只使用一个项目文件打开所有Txt文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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