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

Home » Public Forums » archive » Re: strmid()
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: strmid() [message #46920 is a reply to message #46904] Wed, 11 January 2006 07:10 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Sheldon writes:

> One more question David,
>
> My goal was to take the name of a file that may have varying lengths

I don't understand the question, sorry. :-(

Maybe you want something like FSC_BASE_FILENAME, which
can parse a filename into the base name, the directory,
and its file extension:

IDL> file = 'some_ordinaryfile.h5'
IDL> name = FSC_Base_Filename(file, Directory=d, Extension=e)
IDL> Print, e
h5
IDL> file = 'some_ordinaryfile.hdf'
IDL> name = FSC_Base_Filename(file, Directory=d, Extension=e)
IDL> Print, e
hdf

You can find it here.

http://www.dfanning.com/programs/fsc_base_filename.pro

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: STRING with FORMAT keyword and REFORM
Next Topic: Re: Changing the title of a postscript output file

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

Current Time: Sat Oct 11 10:41:13 PDT 2025

Total time taken to generate the page: 1.04132 seconds