Which jdk do you use ? There was once a version that had an error in ready(). As far as I can remember it always returned true.
Try to end the loop also when you couldn't read a line. (Depends on what getLogentry() does in this case) > -----Original Message----- > From: Adam Buglass [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 10, 2004 2:23 PM > To: Tomcat Users List > Subject: RE: Tomcat 4.1 hangs on File Reading > > FileReader inFile = new FileReader( "/var/log/GFWlogin.log" ); > BufferedReader bfFile = new BufferedReader( inFile ); > while ( bfFile.ready() ) { > LoginLog logentry = getLogentry( bfFile ); > log.add( logentry ); > } > bfFile.close(); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
