Sashidhar wrote:
> 
> Hello,

Hello,

> I am dealing with text files of sizes > 2 GB. I have to modify just the top 2 lines
> of such files. Is there a way in Perl to modify just the first 'n' lines of the file
> without having to process rest of the file as it involves a lot of IO and time.

It depends.  If the modifications don't change the length of the file
then you can do it.  If the modifications increase or decrease the
length of the file then you have to process the entire file.


John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to