f = File.open __FILE__ f.each_line do |line| puts line f.close