> i was actually going to suggest this. the only problem is if the
> file name
> is something like filename.old.cfm or something like that.
So then you can do this:
<cfset newname = Reverse(ListRest(Reverse(filename), "."))>
That will handle almost anything. As long as you know you want to strip off
everything after the last period, and that the name actually has at least
one period, the above will do it.
Jay
PS (for grizzled old programmers) - Remember back in the olden days when
you'd actually put the strings in your source code in reverse order so that
you could save a couple bytes when you output them? :)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists