File extension is in extensions list: Difference between revisions
Content added Content deleted
(→{{header|REXX}}: changed program to reflect new task requirements and examples.) |
m (→{{header|REXX}}: added a comment to the REXX section header as per the task's requirement.) |
||
Line 621: | Line 621: | ||
=={{header|REXX}}== |
=={{header|REXX}}== |
||
This REXX version handles the extra credit requirement. |
|||
<lang rexx>/*REXX program displays if a filename has a known extension (as per a list of EXTs).*/ |
<lang rexx>/*REXX program displays if a filename has a known extension (as per a list of EXTs).*/ |
||
$= 'zip rar 7z gz archive A## tar.bz2'; upper $ /*a list of "allowable" file extensions*/ |
$= 'zip rar 7z gz archive A## tar.bz2'; upper $ /*a list of "allowable" file extensions*/ |