set write to resultdata in appendmode