Read the file correctly