c#获取文档类型 [英] c# to get type of document
本文介绍了c#获取文档类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在windows应用程序中检查文件是.docs类型还是.xslx类型为openfiledialog.Any idea pls help urgent
I want to check whether the file is .docs type or .xslx type in windows application for openfiledialog.Any idea pls help urgent
推荐答案
您好,
此链接向您展示如何获取给定路径中文件的扩展名。
希望它对您有所帮助。
http://www.dotnetperls.com/path-getextension [ ^ ]
也许这可以帮到你开始:
链接1
Link 2
Maybe this can get you started:
Link 1
Link 2
这篇关于c#获取文档类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文