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

Home » Public Forums » archive » Determining length of a text 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: Determining length of a text file? [message #40961 is a reply to message #40889] Tue, 21 September 2004 01:58 Go to previous messageGo to previous message
lloyd is currently offline  lloyd
Messages: 16
Registered: February 2003
Junior Member
[...]
> It is usually more time efficient to allocate a big text array, read,
> ignore the error, and truncate the empty text strings thus avoiding a
> FOR loop. Since all null strings point to the same (null) memory (I
> think) you only use a small temporary memory. For large table this can
> improve speed a lot.

I have a file of a few million lines to read in. Obviously it takes
awhile to read in (using while EOF), and would like to speed it up.

How do I get the code to ignore the error generated?

Thanks

Lloyd
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Irregular Grid in IDL
Next Topic: Re: xinteranimate and string

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

Current Time: Fri Oct 10 17:06:06 PDT 2025

Total time taken to generate the page: 1.84089 seconds