Added write result value in a file