-
I have an application that waits for new data to come in over the internet. Once it receives that data it writes it to a text file. I am writing a program that is going to use that text file to do some operations. My question is: Is there a way for my program to be notified that a new file has been generated? Any other suggestions will be appreciated.
Thanks, JJK
-
You can use sysinfo control that notifys the information you required
-
I don't know if this is the best way to do this, but I have a program that does something similar.
I set up a FileListBox that has a path of the directory where the text file will be placed. I set up a timer to refresh the contents of the FileListBox. When the filelistbox.listcount increments, I know a new file has been received.
-
yeah, i figured i could use a timer to check if the file has been updated. but i wanted to stay away from that, that is why i wanted to know if there was a way to be notified. i will check out the sysinfo control.
thanks
jj