Added write method to File Operations