From: gabe gabriellini Date: 2012-08-23T10:59:24+09:00 Subject: Re: unexpected kend expecting $end I do not think you need the las line "end" and i thing you are not opening the file for reading. str = File.open('rename.rb') content = str.read puts content it is going to display something only if the file has something in it. -- Posted via http://www.ruby-forum.com/.