It is not mentioned in the helpfile but I have a hunch about it. Does the path where the file is written by _FileWriteLog need to exist for the function to work? For example:
_FileWriteLog("c:\temp\file.log","line 1")
If there is no c:\temp folder, would _FileWriteLog still write the file there?