I
Ike
Just looking for feedback on what you might consider the most efficient
means to poll a flat file.
I need to have my app look at a flat file, say, every second or so, and read
any data that may have been appended to it.
Wondering what others might consider an efficient means of doing this in
Java. Would it be wise to merely look at the file size everysecond or so,
and, if that has changed, to then read it, starting from that byte which was
the previous size of the file on the previous polling a second ago?
Is there a more efficent way to do this? Thanks, Ike
means to poll a flat file.
I need to have my app look at a flat file, say, every second or so, and read
any data that may have been appended to it.
Wondering what others might consider an efficient means of doing this in
Java. Would it be wise to merely look at the file size everysecond or so,
and, if that has changed, to then read it, starting from that byte which was
the previous size of the file on the previous polling a second ago?
Is there a more efficent way to do this? Thanks, Ike