从文件夹中如何获取名为.pdf的文件? [英] from the folder how to get the file which is named as .pdf?
本文介绍了从文件夹中如何获取名为.pdf的文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的朋友,
早上好..plz帮帮我..
文件夹包含扩展名为.pdf和.xml的文件集合.
如何获取.pdf文件名的集合并将其填充到arraylist中?
谁能在vb.net中建议代码?
Dear friends,
good morning..plz help me..
A folder contains collection of files with the extension of .pdf and .xml.
How to get collection of .pdf file name and populate the names in arraylist?
can anyone suggest a code in vb.net?
推荐答案
使用System.IO.Directory.GetFiles(theFolder, "*.pdf")
.它返回一个字符串数组.
Use System.IO.Directory.GetFiles(theFolder, "*.pdf")
. It returns an array of strings.
这篇关于从文件夹中如何获取名为.pdf的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文