comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: the last line of a large file
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: the last line of a large file [message #55335 is a reply to message #55237] Fri, 10 August 2007 07:37 Go to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
queiny wrote:
> I think the file_lines works!
>
> Since the file is very large, I can't have one array to read them all
> in once. IDL complained and said there are too many elements in the
> array, so it didn't even let me declare it.

Weird. Exactly how many elements are there? Or, how large is the file?

> The data files are compiled from multiple sources so they only know
> how many records they have in the end.

Well, that's really not an excuse for poorly designed code, but I guess it's
understandable. As a bloke said recently on another newsgroup:

"I always prefer practical, then elegant, then subtle, or I'd never get anything done at all."

cheers,

paulv

>> lol! Really! What in the world is the point of putting the number of
>> lines at the end of the file? That's got to be about the silliest
>> thing I've ever heard of. By the time you've actually read to the end
>> of the file, you already know how many lines there are!
>
>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Transforming a nonlinear equation
Next Topic: Removing bad data from an array

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 07:28:07 PDT 2025

Total time taken to generate the page: 1.11600 seconds