From: "Srinath A." Date: 2009-02-24T15:16:42+09:00 Subject: append static text for all files in a directory How to append static text for all files in application . I want to append comment lines on top of each file in app/controllers/ how can iterate and append in the app ? I used this for single file : filename = File.open("application.rb","a") do |f| f.puts "append to file"; f.close(); end thanks !! -- Posted via http://www.ruby-forum.com/.