7. a) Reading and writing file (Problem)