Preliminary file reading