Okay, I changed my code, but I'm still having the same problem. Here is 
my new code:

  path = " " * 256
  path = ENV['APPDATA'].rstrip
  $appPath = path + "\\MyGame"
-- 
Posted via http://www.ruby-forum.com/.