Re: opening a big file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Apr 6, 2008 at 10:36 PM, Richard Lee <rich.japh@xxxxxxxxx> wrote:
> I am trying to open a big file and go through line by line while limiting
> the resource on the system.
>  What is the best way to do it?
>
>  Does below read the entire file and store them in memory(not good if that's
> the case)..
>
>  open(SOURCE, "/tmp/file") || die "not there: $!\n";
>  while (<SOURCE>) {
>  ## do something
>  }

    Was there a reason this was sent to the PHP list as well?  Maybe
just a typo?

-- 
</Daniel P. Brown>
Ask me about:
Dedicated servers starting @ $59.99/mo., VPS starting @ $19.99/mo.,
and shared hosting starting @ $2.50/mo.
Unmanaged, managed, and fully-managed!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux