in reply to Re: reading 100 line at a one time
in thread reading 100 line at a one time
Ok,
i have the problem thet i want to read 1000(suppose) at a time instead of reading one line at a time from the log file. and then i will use this block for parsing.
is there any code u can provide .
i am using following code:
Is there any solution for it.open(handle, "c:\\file.log"); while(<handle>) { #here i use regular expression for parsing line #here i print parse information } now i want it as follow function(filepath, numberofline)#return number of line while(<return line>) { #here i use regular expression for parsing line #here i print parse information }
Edit by BazB. Add code tags. Remove excess br tags.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: reading 100 line at a one time
by chromatic (Archbishop) on Mar 01, 2005 at 08:05 UTC | |
|
Re: reading 100 line at a one time
by jZed (Prior) on Mar 01, 2005 at 08:04 UTC |