如何在文件中读取pdf计数并编写C#? [英] How to read pdf count in file and write C#?
本文介绍了如何在文件中读取pdf计数并编写C#?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好。我想在文件中阅读pdf。如何阅读文件?
例如:D \\A.file \\包括3个pdf。
如何阅读pdf计数c#?
我想要pdf计数和写pdf count
我尝试过:
我读过pdf但是dontcount.ı读取pdf bur count not read not not write
Hello.I want to read pdf in file.How to read in file?
For example: D\\A.file\\ include 3 pdf.
How to read pdf count c#?
I want to pdf count and write pdf count
What I have tried:
I read pdf but dont count.ı read pdf bur count not read and not write
推荐答案
你可以使用 Directory.GetFiles [ ^ ]:
You can use Directory.GetFiles[^]:
string[] pdfFiles = Directory.GetFiles("your directory", "*.pdf");
int count = pdfFiles.Count;
这篇关于如何在文件中读取pdf计数并编写C#?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文