Almost there, I think.  Any ideas why my file is created but nothing is printed to it?