in reply to How do you add .RTF to a file
If you need to rename a file with no extension you just need to say:
rename $myfile, $myfile.'.rtf';
If you just need to append .rtf to a string containing a filename then write:
$myfile = $myfile.'.rtf';
Michele.
|
|---|