librdf_query_results_to_file2 function

Write a query results to a file.