Anonymous user
File extension is in extensions list: Difference between revisions
File extension is in extensions list (view source)
Revision as of 21:16, 11 August 2014
, 9 years ago→{{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
:::* 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'
|