Distributed Real-Time

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • how to continuously read a changing text file

    1 answers - 329 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Hello!

    I am new to java, I wish to write java code to continuously read text file every time the file is modified, - like new text added. This is for my real-time thesis project. I have tried using while loop, but the code is not efficient, it real slows down the machines. Could anyone help me please.

    Regards

  • No.1 | | 459 bytes | |

    Hi!

    When you say, you want to continuously read text file, i believe that even your java prog will be running?

    I think you can try the 'keylistener' interface, it defines a function called keyPressed(), if you have javadocs, that's really good.

    so whenever you type a key, this function will be called and you can write appropriate code in that function(keyPressed())

    I really hope this solves ur problem

    ALL the best!!

Re: how to continuously read a changing text file


max 4000 letters.
Your nickname that display:
In order to stop the spam: 0 + 9 =
QUESTION ON "Distributed Real-Time"

JAVA TECH