Added putFileMethod