From: Henry Maddocks Date: 2012-08-23T07:59:23+09:00 Subject: Re: unexpected kend expecting $end On 23/08/2012, at 10:50 AM, praveen k. wrote: > str = File.open('rename.rb','w') > content = str.read > puts content > end > > error at line 4 > pls help > i'm a newbie kend means the Ruby keyword 'end' $end means end of file. Therefore this error means the your script has an extra keyword 'end' when one isn't required. Henry