From: "Jan E." Date: 2012-07-22T08:15:52+09:00 Subject: Re: File.open error when variable is used Hi, Well, how are we supposed to help now? We neither know the code nor the exact error message. What do you get when writing p $fileName just before the File.open? By the way, are you sure you want a global variable? Using this for a simple file name looks like a bad idea to me. And you should apply the Ruby convention for variable names, which is "file_name" and not "fileName" like in Java. -- Posted via http://www.ruby-forum.com/.