Tailing a file content?

Hi all,

I’ve been digging around the documentation but couldn’t figure out a way to tail a file. Basically I’m setting up an App, in which I select a file, and every time a new line is inserted I do X.

Is there any way to achieve that? I’ve been looking for “tailing file” or similars but had no luck.

Thanks

What are: “I do X” and “tailing file” ?

Do you want to append text into a text file ?
Do you want to replace the contents of a text file ?

If this is OS X, I’d use tail through a Shell in Interactive mode.

why not just load the file into a string and use RIGHT (assuming it isn’t multi-mega/giga bytes), otherwise I’d use Shell