write to a file using write rowset (pepolecode)