I am trying to do some data streaming massaging. to be exact I am capturing a log file and use it as an input, do some calculation and massaging, and output the results.
how can I do that.
I have tried with
open(INFILE, outputfile.txt);
while (<INFILE>) {
blah
blah
}
this won't work because the program will use the file at the time the program runs. as you know since outputfile.txt is a log file from another application it will grow/have new data every second.
help