[Pramod] added updateFile functionality