Implemented file reading and writing, created a test file.