I'm trying to write a simple chat application in Rebol which is based on a single text file. What would be the best way to read that file "real time"? Right now I've got it working with this:
t1: text 600x300 wrap green black font-name font-fixed rate 1 feel[
engage: func [face action event][
if action = 'time [
face/text: read chatText
show face
]
]
]
The text field gets updated every second with the content of the file. That works, even with multiple users, but the whole file is read every second for every user. Is there a better way to do this kind of thing?