Implemented the file viewer and writer.