M
M
mississippi2018-03-13 12:42:29
C++ / C#
mississippi, 2018-03-13 12:42:29

How to check a folder for new files?

I write data from a folder with files to the database (connected to the application through the Entity Framework). To do this, you need to periodically check whether a new file (or files) has appeared in the folder. Is it possible to do this without checking all the files in the folder? I can't think of a simple solution.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Daniel, 2018-03-13
@mississippi

FileSystemWatcher class . Here is a great example of how to work with it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question