Correct the reading of files by using Reader