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

Home » Public Forums » archive » Interpolation question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
file_lines and expand path [message #49635 is a reply to message #49556] Fri, 04 August 2006 08:23 Go to previous messageGo to previous message
FL is currently offline  FL
Messages: 17
Registered: April 2006
Junior Member
Hi,

I am implementing file_lines in FL and was wondering what to return when
the input path expands to multiple files. The IDL reference guide says
nothing. I have run IDL and got curious result:

IDL> help, file_lines('*.pro')
<Expression> LONG64 = 15

I have 448 .pro files in the current directory, with a total of 10k lines.
IDL seems to be randomly picking a single file and reporting its length
(probably the first match in readdir()).

What do you expect to get?

Possibilities:

1. never expand (but why do we have NOEXPAND then?)
2. give an error message if the expansion results in more than one file
3. return the total length of files
4. return the total length of files if a new keyword TOTAL was set
5. do as IDL, pick a single file silently

thanks,
lajos
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Length of command line input
Next Topic: ellipsoid 3D

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

Current Time: Fri Nov 28 19:01:29 PST 2025

Total time taken to generate the page: 0.15057 seconds