save_results function

Save search results to a file