reading and writing file done