Function to write haystack result data to file.

write_haystack(res.haystack, file)

Arguments

res.haystack

A 'haystack' result variable

file

A file to write to