option to store resultset in file