• Post Reply Bookmark Topic Watch Topic
  • New Topic

Is there any listener to knowever when a file is being modified  RSS feed

 
nira sri
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i want to write a program that would display the contents of a file whenever that file is being modified. is there any file listener for this?
Please do reply.
Thanks in advance.
Niranjani
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's no class library method for this. Is this related to the web app you asked about in the other topic? If so, a web page can't be displayed at the request of the server - it's being requested by the client (who has no idea whether the file on the server has changed).

You could make the page auto-refresh itself every so often, but that would be independent of whether or not the file actually changed.
 
Nitesh Kant
Bartender
Posts: 1638
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not an advanced question. Moving it to Java In General - Intermediate
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!