A Smith
A Smith

Reputation: 251

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.

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

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

Upvotes: 0

Views: 413

Answers (1)

Mark Brackett
Mark Brackett

Reputation: 85685

FileSystemWatcher would be good for this.

Upvotes: 1

Related Questions