Institut für Astronomie und AstrophysikAbteilung AstronomieWaldhäuser Str. 64, D-72076 Tübingen, Germany |
CONCAT_DIR
To concatenate directory and file names for current OS.
The given file name is appended to the given directory name with the format appropriate to the current operating system.
result = concat_dir( directory, file)
directory - the directory path (string) file - the basic file name and extension (string) can be an array of filenames.
The function returns the concatenated string. If the file input is a string array then the output will be a string array also.
IDL> pixfile = concat_dir('$DIR_GIS_MODEL','pixels.dat') IDL> file = ['f1.dat','f2.dat','f3.dat'] IDL> dir = '$DIR_NIS_CAL' IDL> f = concat_dir(dir,file)
Assumes Unix type format if os is not vms, MacOS or Windows. The version of CONCAT_DIR available at http://sohowww.nascom.nasa.gov/solarsoft/gen/idl/system/concat_dir.pro includes (mostly) additional VMS-specific keywords.
Utilities, Strings
Prev Hist. : Yohkoh routine by M. Morrison Written : CDS version by C D Pike, RAL, 19/3/93 Version : Version 1 19/3/93 Documentation modified Nov-94 W. Landsman Add V4.0 support for Windows W. Landsman Aug 95 Converted to IDL V5.0 W. Landsman September 1997 Changed loops to long integer W. Landsman December 1998 Added Mac support, translate Windows environment variables, & treat case where dirname ends in '/' W. Landsman Feb. 2000
[Home Page] [Software, Documentation] [IDL Documentation] [Quick Reference] [Feedback]