Re: line by line file read

2006-03-07 Thread Xavier Noria
On Mar 7, 2006, at 15:47, Saurabh Singhvi wrote: Hi all thanks for the reply. The gzip and zcat ones seem like what i was looking for. But about the reading part: I was using the same way for reading. I thought that was the standard way. But the thing is even though i am readin the file l

Re: line by line file read

2006-03-07 Thread Saurabh Singhvi
Hi all thanks for the reply. The gzip and zcat ones seem like what i was looking for. But about the reading part: I was using the same way for reading. I thought that was the standard way. But the thing is even though i am readin the file line by line, the file is loaded completely to the memor

Re: line by line file read

2006-03-07 Thread John W. Krahn
Saurabh Singhvi wrote: > Hi Hello, > #!/usr/bin/perl > > open(FILE,'file') or die "Couldn't open $!"; > while (1){ > .. > ... > } > } > > This is a sample code i am using to read a file > Now the issue here is that the complete file gets loaded into memory at once > and

Re: line by line file read

2006-03-07 Thread Xavier Noria
On Mar 7, 2006, at 12:33, Saurabh Singhvi wrote: Hi #!/usr/bin/perl open(FILE,'file') or die "Couldn't open $!"; while (1){ .. ... } } This is a sample code i am using to read a file Now the issue here is that the complete file gets loaded into memory at once and t

Re: line by line file read

2006-03-07 Thread Tom Allison
Saurabh Singhvi wrote: Hi #!/usr/bin/perl open(FILE,'file') or die "Couldn't open $!"; while (1){ .. ... } } This is a sample code i am using to read a file Now the issue here is that the complete file gets loaded into memory at once and then the following job of parsi

line by line file read

2006-03-07 Thread Saurabh Singhvi
Hi #!/usr/bin/perl open(FILE,'file') or die "Couldn't open $!"; while (1){ .. ... } } This is a sample code i am using to read a file Now the issue here is that the complete file gets loaded into memory at once and then the following job of parsing gets done. Is there a