Decodes txt files