I wrote a script that operates on my Mac just fine. It has this line of code in it:
filename = "2011"
File.open(filename, File::WRONLY|File::CREAT|File::EXCL) do |logfile|
logfile.puts "MemberID,FirstName,LastName,BadEmail,gender,dateofbirth,ActiveStatus,Phone"
On Windows the script runs fine and it creates the logfile 2011
, but it doesn't actually puts
anything to that logfile, so the file is created, the script runs, but the logging doesn't happen.
Does anyone know why? I can't think of what would have changed in the actual functionality of the script that would cause the logging to cease.