File Write Method added