That may not even be the correct question, but here's what I'm trying to do.
Another application is writing a device number into a file.
I have a program that reads the file. The information is used to send a turn-on command to a device. The device automatically turns off after a second, so while the first program continues, every two seconds, the second program has to send the turn-on command to the device until the number in the file changes to another number or it becomes nothing.
Back to the question, what is the best way to monitor the file for change?
I hope this makes sense.
Thanks,
Jamie
Another application is writing a device number into a file.
I have a program that reads the file. The information is used to send a turn-on command to a device. The device automatically turns off after a second, so while the first program continues, every two seconds, the second program has to send the turn-on command to the device until the number in the file changes to another number or it becomes nothing.
Back to the question, what is the best way to monitor the file for change?
I hope this makes sense.
Thanks,
Jamie
Comment