Junior — Senior
Universal file reading module by extension
livecode
Task condition
It is necessary to develop a universal component capable of opening and reading the contents of a file regardless of its format, determining the file type solely by its name. It is not required to know in advance which specific format will be used.
Example of usage:
$filename = ''; // .txt, .txt.gz, .txt.zip
The component should correctly handle regular text files as well as their compressed variants (gzip, zip) without additional configuration.