Simple function that's supposed to write to a file - doesn't work

Printable View