如何读取目录中最后创建的文件? vb.net

[英]How to read the last created file in a directory? vb.net


I have a directory where xml documents are stored once created every minute.

我有一个目录,每分钟创建一次xml文档。

I need to read the newest/latest xml document each time it is added.

我需要在每次添加时阅读最新/最新的xml文档。

Is there anyway i can read the newest/latest xml file from the directory?

无论如何我可以从目录中读取最新/最新的xml文件吗?

1 个解决方案

#1


1  

FileSystemWatcher would be good for this.

FileSystemWatcher对此有好处。


注意!

本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:http://www.silva-art.net/blog/2012/02/19/3ac6336b2a8742f03b47ca3723153d98.html



 
© 2014-2019 ITdaan.com 粤ICP备14056181号