Detect Change On Server

Hello,

I am trying to figure out an easy way to detect a change in a text file on a server.

I have 2 kiosks, they both are pulling data from a simple text file that looks like this:

VAR1=43&VAR2=37

One kiosk saves the data to that text file, the other reads it. I want to find a way to that anytime that text file changes, the kiosk that reads it instantly updates.

I had the idea of just using an interval to check it every second, but there has got to be a better way. any ideas?
Thanks!

Have you looked into Socket Connections?

No, i have not looked into socket connections. im looking at the help file but i can’t seem to find what im looking for exactly. Do i make a socket connection to the text file?

Check out this tutorial. It requires some basic knowledge of Java, but I got it working. You would connect to the XML file and Flash will listen for update events.