I\'d like to write a method that takes a filename as input, then checks to see if the file is compressed or not (gzip, xz/LZMA, none) and then checks whether the contents of