I have to create a WPF App (.NET Framework) to create a program with user interface.
While the GUI is working, the program has to continue, with an infinite loop, to read in background a folder which is continuously filled with new txt files from an external program.
An example:
- External programm --> creates new txt files and puts them into a folder named "Buffer"
- My Programm --> starts in background an infinite loop that reads every single file and deletes them from "Buffer"
This process has to be controlled by the main GUI, but it doesn't have to stop the other processes.
I suppose that I have to use threads to parallelize the processes, but unfortunately I don't have a lot of experience with C#, could you help me by giving some suggestion please?