I got it fixed. Thanks for all the help.
I\'ve now looked through quite a few articles, forum posts and topics here; however, none have actually fixed my issue. The
The file is created, but not where you expect it to be.
Check the working directory (getcwd).
getcwd