develooper Front page | perl.beginners | Postings from February 2002

Re: memory issues reading large files

Thread Previous
Brett W. McCoy
February 7, 2002 12:39
Re: memory issues reading large files
Message ID:
On Thu, 7 Feb 2002, Brian Hayes wrote:

> Hello all.  I need to read through a large (150 MB) text file line by
> line.  Does anyone know how to do this without my process swelling to
> 300 megs?

As long as you aren't reading that file into an array (which would be a
foolish thing to do, IMHO), I don't see why the process would swell to 300

-- Brett
-  long    f_ffree;    /* free file nodes in fs */
+  long    f_ffree;    /* freie Dateiknoten im Dateisystem */
	-- Seen in a translation

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About