File extension is in extensions list: Difference between revisions

m
→‎{{header|REXX}}: added comments to the REXX section header.
(→‎{{header|REXX}}: added REXX code to handle a path in the filename, also to handle a filename with multiple periods at the tail end.)
m (→‎{{header|REXX}}: added comments to the REXX section header.)
Line 35:
 
=={{header|REXX}}==
Programming note:   extra code was added to display some error/warning messages, and also to handle the case of the filename having a ''path''.:
:::* display some error/warning messages
:::* handle the case of the filename having a ''path''
:::* handle the case of different types of ''path'' separators
:::* handle the case of the filename having no file extension
:::* handle cases of the filename ending in a period
:::* handle cases of the filename ending in multiple periods
<lang rexx>/*REXX program displays if a filename has a known extension (per a list)*/
extentions='.bat .cmd .com .dat .dll .exe .ini .jpg .jpeg .log .sys .txt'