From: Sergio Ruiz Date: 2007-04-13T11:25:21+09:00 Subject: Re: file manipulation > > File.open( 'index', 'r+') {|f| > index = f.gets.to_i > puts "Index value: #{ index }" > f.rewind > f.truncate(0) > f.puts( index + 1 ) > } perfect! thanks so much! -- Posted via http://www.ruby-forum.com/.