Cut off answer in various file formats