Set up file reading/writing framework