Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners > Re: opening a b...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 11 Topic 10959 of 11532
Post > Topic >>

Re: opening a big file

by krahnj@[EMAIL PROTECTED] (John W. Krahn) Apr 20, 2008 at 03:28 PM

Richard Lee wrote:
> Mr. Shawn H. Corey wrote:
>>
>> Sadly, even ReadBackwards in no magic bullet.  (And BTW, it should be
>> ReadBackward.)
>>
>> It still has to go through the entire file and mark the offsets to the
>> start of every line.
>>
>> The best way to do this is just to bite the bullet and do it.
> 
> There is no way to read say last 10 MB of the file or something? It's 
> very surprising why no such thing exists..

Sure, just seek() to the last 10 MB position and start reading from there.


John
-- 
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order.                            -- Larry Wall
 




 11 Posts in Topic:
Re: opening a big file
chas.owens@[EMAIL PROTECT  2008-04-20 16:07:27 
Re: opening a big file
rich.japh@[EMAIL PROTECTE  2008-04-20 17:02:58 
Re: opening a big file
rich.japh@[EMAIL PROTECTE  2008-04-20 18:10:02 
Re: opening a big file
krahnj@[EMAIL PROTECTED]   2008-04-20 15:28:18 
Re: opening a big file
Jenda@[EMAIL PROTECTED]   2008-04-21 12:12:37 
Re: opening a big file
david@[EMAIL PROTECTED]   2008-04-20 17:12:15 
Re: opening a big file
noreply@[EMAIL PROTECTED]  2008-04-21 17:18:02 
Re: opening a big file
rich.japh@[EMAIL PROTECTE  2008-04-21 11:19:10 
Re: opening a big file
noreply@[EMAIL PROTECTED]  2008-04-21 17:41:29 
Re: opening a big file
rich.japh@[EMAIL PROTECTE  2008-04-21 11:47:00 
Re: opening a big file
noreply@[EMAIL PROTECTED]  2008-04-21 18:25:26 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 6:17:44 CDT 2008.