newext

Last updated Sun Sep 19 11:55:04 1999


Change the extension of file names

1. SYNOPSIS

s = newext(old, new, fname, delim )

2. DESCRIPTION

Return a string for a file name with a new extension. The extension delimiter can be specified to allow other changes in file names. The following rules take place:

3. PARAMETERS



old

String with old extension.



new

String with new extension.



fname

Name of file.



delim optional

Specifies the extension delimeter to use. Default is '˙'. If delim is s tring with more than one character,all of them are used as the extension delimiter.

4. RETURNS

The new file name.

5. AUTHORS

Pierre Jaccard, Geophysical Institute, University of Bergen, 1999