Hello,
the goal of my programe is to read from a log file "A" (comma delimited text file) which is generated when events occurs while the system is running and to extract some fields from that log file "A" and create a comma delimited text file "B" consists of the extracted fields from the parent log file "A".
I have opted the way of "Reading the file in to a buffer" after some seconds. using system I/O "read (filehandle, buffer, buffersize) "
and then extracting the fields from the buffer by getting one line at a time and process/extract the required fields from the line and putting the extracted fields in to the destination file (comma delimited).
I am facing difficulty while reading the buffer line by line so i can extract the required fields from the each line one by one from the buffer when it got filled in a read operation.
Please help me for this, and also comment on effeciency of the programe implemented in this way.



LinkBack URL
About LinkBacks




