rebuffering an opened file

From: Fadi Komati (fadi.komati_at_act.com.lb)
Date: 05/31/04


Date: 31 May 2004 00:33:53 -0700

Dear All,
I need your help concerning the following.
I am openeing a log file for processing (I need to look for certain
activities)

obviously i keep reading until the end of file.

What i need is the following: I need to be able to reload the file in
order to read the entries added to the end of the file. Obviouly, i
would like the file pointer to be positioned where i stopped reading .

can anyone help me with this ( a small code sample would be
marvelous). Or if you can tell me what function call to use in order
to reread the file and thus see the changes.

Please advise.

Regards



Relevant Pages

  • Re: about sysclean from trend micro (Rusty & Marcy)
    ... 2005-01-12, 15:21:41, Could not set file for reading on ... you OS is clean based upon what Sysclean and Pattern File 335 could find. ... Just attach the LOG file here. ...
    (microsoft.public.security.virus)
  • Re: Novice::Help>Split IP Address(port) + count
    ... log file: What is the best combination of 'split' and regexes to do ... But the code you posted starts with opening and reading the file -- ... which is not your stated problem. ... dealing with printing the results of your line parsing to STDOUT -- ...
    (comp.lang.perl.misc)
  • Re: rebuffering an opened file
    ... > I am openeing a log file for processing (I need to look for certain ... > would like the file pointer to be positioned where i stopped reading. ... > to reread the file and thus see the changes. ...
    (comp.lang.c)
  • Re: data manipulation
    ... >> I have a log file i want to further manipulate, ... >> extract info from. ... I am new to Perl, and after reading, there are only 2 lines I don't clearly ... After reading the push function description from "learning Perl" I am ...
    (comp.lang.perl.misc)
  • Re: rebuffering an opened file
    ... > I am openeing a log file for processing (I need to look for certain ... > would like the file pointer to be positioned where i stopped reading. ... If it is so, when you finish reading the file for the first time, you ...
    (comp.lang.c)