Implemented a decoding function, which opens an input file, decodes the
stream, and outputs it in the ouputfile