Working with very large text files
- From: ytoledano@xxxxxxxxx
- Date: 30 Dec 2005 04:59:36 -0800
Hi,
I'm working on a server which writes text to large log files. The
problem is that these files are 1 GB and when I open them with perl,
perl tries to load the entire file into the memory and fails when XP is
out of memory.
I only need to use the text written in the last 5 minutes, which
shouldn't take more then a couple of megs, but since I'm using XP, I
can't use `tail`.
What code doesn't make perl load the entire file into the memory?
.
- Follow-Ups:
- Re: Working with very large text files
- From: Paul Lalli
- Re: Working with very large text files
- Prev by Date: Fwd: checking gzip files
- Next by Date: Date formatting
- Previous by thread: Fwd: checking gzip files
- Next by thread: Re: Working with very large text files
- Index(es):
Relevant Pages
|
|