Wrote file reading function