Correction and adaptation of files