#!/usr/local/bin/ruby STDERR.print "見たいファイルは?: " fn = gets.chomp open(fn, "r") do |f| while fline=f.gets print fline end end