From: Robert Klemme Date: 2005-12-10T02:32:36+09:00 Subject: Re: Log file analyzer Michael Ulm wrote: > I want to analyze a log file using ruby. What is > the most Ruby-like method to check the file for new > entries (they will be appended to the file) and > then get those new entries into the system? > > I have a feeling that this should be rather simple, > but I can't think of an elegant way. If data is appended to a single file all the time remember the last seek position and compare file size with this seek offset. If file size increased there is new data. robert