[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: filename



Gernot Reishofer wrote:
> 
> hi,
> 
> I have to save two files with the same filename but different
> extensions. Using DIALOG_PICKFILE creates path+filename+extention.
> Can you experts tell me the shortest way to get the filename avoiding
> too many string operations?
> 
> thanks for help
> 
> Gernot

I'm not sure it is the shortest, but it is sure convenient to use a
utility routine from one of several public domain librariers for this.
In my own library this is extract_filename.pro. You can browse through
this and other libraries at
http://www.mpimet.mpg.de/~schultz.martin/idl/

CHeers,
Martin

-- 
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[
[[ Dr. Martin Schultz   Max-Planck-Institut fuer Meteorologie    [[
[[                      Bundesstr. 55, 20146 Hamburg             [[
[[                      phone: +49 40 41173-308                  [[
[[                      fax:   +49 40 41173-298                  [[
[[ martin.schultz@dkrz.de                                        [[
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[