Eugene Voznesensky wrote:
> Jeff Martin wrote:
> > Eugene Voznesensky wrote:
> > > I have implement the next in my Java program:
> > >
> > > To be notified when log file changed and read
> > > added part for further processing.
> >
> > A quick way would be to use File.length() to keep
> > checking if the file has grown some.
>
> Do you have any idea how to read an added part of the
> file?
FileInputStream fis = new FileInputStream( filename );
fis.skip( oldLength );
then read til end of file.
Jeff
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".