Saving merged data in one file