[REBOL] Re: How to change a file extension ?
From: rotenca:telvia:it at: 13-Jan-2002 19:36
> infile: to-string %/d/rebol/prog.r/program.r
> ext: find/last infile "."
> outfile: copy/part infile (length? infile) - (length? ext)
> append outfile ".bak"
> print outfile
> It seems to me a bit complicated. Does anyone have a better (simpler)
> solution ?
clear change find/last file "." ".r"
change/part find/last file "." ".r" tail file