• Post Reply Bookmark Topic Watch Topic
  • New Topic

Listening to changes in a file

 
Desi munda
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am trying to solve a problem that needs me to display server logs to client developer using an applet.
I've written a logserver that reads the logfile and spits the output to the socket where my applet is constantly listening.
The problem I am facing is I don't know how to tell the logserver that there is new stuff in the logfile that needs to be read and send to the socket so that Applet can read it and display it.
Can I register some kind of listner to this log file and set up a callback that then reads this file.
Thanks
Desi
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!