file.Write (bad argument to 'Open' string expected got nil)

snip, please delete