Coyote Graphics Routines

Date: Fri Mar 27 12:14:20 2015

single page | use frames     summary     class     fields     routine details     file attributes


top cgAppendToFilename


result = cgAppendToFilename(filename, theText)

The purpose of this routine is to allow the user append text to the end of the root name of an absolute file name. The text is appended to the end of the root name (see cgRootName) and before the final file extension.

Return value

The appended filename.


filename in required type=string

This file name the text is to be to be appended to. It may be a relative or absolute path name to a file.

theText in required type=string

The text to append to the end of the file root name.


Append "processed" to a filename:

IDL> thePath = "C:\rsi\idl7.8\lib\jester.img" IDL> outFileName = cgAppendToFilename(thePath, '_processed') IDL> Print, outFileName C:\rsi\idl7.8\lib\jester_processed.img

Author information



David W. Fanning 1645 Sheely Drive Fort Collins, CO 80526 USA Phone: 970-221-0438 E-mail: Coyote's Guide to IDL Programming:


Copyright (c)2012, Fanning Software Consulting, Inc.


Change History:

Written by: David W. Fanning, 19 September 2012.

File attributes

Modification date: Fri Mar 27 11:07:35 2015
Lines: 112
Docformat: rst rst