Write a file given an list of strings and a filename